net/sfc: fix flow control settings on port start
authorAndrew Rybchenko <arybchenko@solarflare.com>
Thu, 12 Jan 2017 09:03:23 +0000 (09:03 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:25 +0000 (22:18 +0100)
commit0e7449cabc318e262d2f3e1cc75db76b706aeb67
tree5c7078132f79d3725c487f96c8e4be16496003ba
parent9b098c525beb17869afc4952fe9ac403ef3b46c7
net/sfc: fix flow control settings on port start

efx_phy_adv_cap_set() sets all advertised phy capabilities including
pause capabilities which are also configured using efx_mac_fcntl_set().

If we set speed and autonegotiation capabilities only, we should
preserve already configured pause capabilities.

Fixes: d23f3a89ab54 ("net/sfc: support link speed and duplex settings")

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andrew Lee <alee@solarflare.com>
drivers/net/sfc/sfc_port.c