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)
commit0b72a9a1060e7547e71e7f600849a2d3006bf63a
tree8f54ce6b7ee0ce1e8ec364d261cb8dbd78dced59
parent006394a7cb20559418c602b8433ec1839b6fc1d3
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