]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/net/smsc911x.c
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)
commitbc02ff95fe4ebd3e5ee7455c0aa6f76ebe39ebca
tree675887b8007a53464e84b9da2f7b54a77fab035a
parente18ce3465477502108187c6c08b6423fb784a313
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