]> git.baikalelectronics.ru Git - kernel.git/commit
mdio: Advertise pause (flow control) settings even if autoneg is off
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 12 Oct 2009 09:26:17 +0000 (09:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2009 06:59:07 +0000 (23:59 -0700)
commitca7409eaa060c4d43112a158430084bfea3c7c73
tree6bd88e69a3279f0b4a0d31a80eef58f3cd4bc5ba
parentcad8d612f86e3b60091ab4bb81a1048c632c8f78
mdio: Advertise pause (flow control) settings even if autoneg is off

Currently, if pause autoneg is off we do not set either pause
advertising flag.  If autonegotiation of speed and duplex settings is
enabled, there is no way for the link partner to distinguish this from
our refusing to use pause frames.

We should instead set the advertising flags according to the forced
mode so that the link partner can follow our lead.  This is consistent
with the behaviour of other drivers.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mdio.c