All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: dbanerje@akamai.com
Cc: jay.vosburgh@canonical.com, netdev@vger.kernel.org,
	vfalico@gmail.com, andy@greyhouse.net
Subject: Re: [PATCH net-next v2 4/4] bonding: allow carrier and link status to determine link state
Date: Wed, 16 May 2018 13:10:05 -0400 (EDT)	[thread overview]
Message-ID: <20180516.131005.1506778995198859622.davem@davemloft.net> (raw)
In-Reply-To: <27902b745c4240b4a7968f1a148b4340@usma1ex-dag1mb2.msg.corp.akamai.com>

From: "Banerjee, Debabrata" <dbanerje@akamai.com>
Date: Wed, 16 May 2018 16:54:40 +0000

> See output of /proc/net/bonding/bond0 below, same content as the
> prior email. bnx2x driver, on ith1: "MII Status: up" is directly
> from netif_carrier_ok(bond->dev) , but speed and duplex are unknown,
> which come from the same call as would be used from
> bond_mii_monitor(), __ethtool_get_link_ksettings(slave_dev,
> &ecmd). Yes it's possible this is because of bugs in the drivers
> themselves, but without being able to readily reproduce the state
> below we can't debug it, nor do we know which combination of
> hardware and drivers are reliable at any given point in time. We can
> say though that if this had been set to "both", ith1 would have been
> correctly removed from the bond. That said if this is still
> controversial I can resubmit the series without this patch.

Looking at the bnx2x driver, it's management of link state is very
convoluted.

The link parameters and the "link_up" state is maintained separately
from the values that are snapshot when the carrier is enabled.

I don't think we should reward drivers for behaving this way.

If the carrier is up, you should be able to provide the link speed and
duplex values immediately not some indeterminate amount of time later.

  reply	other threads:[~2018-05-16 17:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-14 18:48 [PATCH net-next v2 0/4] bonding: performance and reliability Debabrata Banerjee
2018-05-14 18:48 ` [PATCH net-next v2 1/4] bonding: don't queue up extraneous rlb updates Debabrata Banerjee
2018-05-14 18:48 ` [PATCH net-next v2 2/4] bonding: use common mac addr checks Debabrata Banerjee
2018-05-14 18:48 ` [PATCH net-next v2 3/4] bonding: allow use of tx hashing in balance-alb Debabrata Banerjee
2018-05-14 18:48 ` [PATCH net-next v2 4/4] bonding: allow carrier and link status to determine link state Debabrata Banerjee
2018-05-16 16:11   ` Jay Vosburgh
2018-05-16 16:28     ` David Miller
2018-05-16 16:54       ` Banerjee, Debabrata
2018-05-16 17:10         ` David Miller [this message]
2018-05-16 17:14           ` Banerjee, Debabrata
2018-05-16 17:20             ` David Miller
2018-05-16 16:16 ` [PATCH net-next v2 0/4] bonding: performance and reliability David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180516.131005.1506778995198859622.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=andy@greyhouse.net \
    --cc=dbanerje@akamai.com \
    --cc=jay.vosburgh@canonical.com \
    --cc=netdev@vger.kernel.org \
    --cc=vfalico@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.