]> git.baikalelectronics.ru Git - kernel.git/commit
net: Refactor full duplex flow control resolution
authorSteve Glendinning <steve.glendinning@smsc.com>
Tue, 16 Dec 2008 10:00:48 +0000 (02:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Dec 2008 10:00:48 +0000 (02:00 -0800)
commit2f7144ccb8f8afbbbd9b32c8ca61a8be28490ae9
tree675887b8007a53464e84b9da2f7b54a77fab035a
parent11632b56e9596a23359ad3d09cd43e9e66d401f0
net: Refactor full duplex flow control resolution

These 4 drivers have identical full duplex flow control resolution
functions.  This patch changes them all to use one common function.

The function in question decides whether a device should enable TX and
RX flow control in a standard way (IEEE 802.3-2005 table 28B-3), so this
should also be useful for other drivers.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/smsc911x.c
drivers/net/smsc9420.c
drivers/net/tg3.c
drivers/net/usb/smsc95xx.c
include/linux/mii.h