]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Switchon carrier only upon interface link up
authorSunil Goutham <sgoutham@cavium.com>
Wed, 2 Dec 2015 10:06:16 +0000 (15:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Dec 2015 20:58:50 +0000 (15:58 -0500)
commitfcd8100f0882544b3ce0d9cc2d650791cccbd383
tree8f54ce6b7ee0ce1e8ec364d261cb8dbd78dced59
parentffc4958dd167358ac6044647c4f491fafdbacd04
net: thunderx: Switchon carrier only upon interface link up

Call netif_carrier_on() only if interface's link is up. Switching this on
upon IFF_UP by default, is causing issues with ethernet channel bonding
in LACP mode. Initial NETDEV_CHANGE notification was being skipped.

Also fixed some issues with link/speed/duplex reporting via ethtool.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
drivers/net/ethernet/cavium/thunder/nicvf_main.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.c