net/atlantic: fix flow control by sync settings on Rx
authorPavel Belous <pavel.belous@aquantia.com>
Mon, 29 Apr 2019 08:20:23 +0000 (08:20 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commit921eb6b8ce31f2f3fde943f1547856fe0aaee538
tree63c85465c9b07cc3cc17b14d0a7b188010b1b653
parent8fd8aa74b25ed5be71e4b501e8eaa7f56185d451
net/atlantic: fix flow control by sync settings on Rx

Driver should track negotiated PHY flow control settings during
link state changes and update MAC level flow control configuration.

Otherwise there could be unexpected pause frames generation which
could lockup the datapath.

Fixes: 4c1c8f76463f ("net/atlantic: add flow control configuration")
Cc: stable@dpdk.org
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
drivers/net/atlantic/atl_ethdev.c
drivers/net/atlantic/atl_types.h
drivers/net/atlantic/hw_atl/hw_atl_b0.c
drivers/net/atlantic/hw_atl/hw_atl_b0.h
drivers/net/atlantic/hw_atl/hw_atl_utils_fw2x.c