net/cxgbe: disable Rx during port link down
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Mon, 15 Mar 2021 21:51:46 +0000 (03:21 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 22 Mar 2021 18:21:55 +0000 (19:21 +0100)
commit23d5fee348d4c7c6c6df5c4557e1c416f1545e4b
treed3d60f717a21bdb0f3d3ebd2decd2ece1d2334fd
parentdb4a78b53f1f4969c52b774915466f65bfa01139
net/cxgbe: disable Rx during port link down

When link goes down, disable the port's Rx path to drop the incoming
traffic closer to the wire, instead of accepting them in for further
Rx processing, only to eventually drop them at the port's RxQs. This
prevents unnecessary congestion in the Rx path. The port's Rx path
will be re-enabled once the link up event is received in the firmware
event queue.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
doc/guides/nics/cxgbe.rst
drivers/net/cxgbe/base/adapter.h
drivers/net/cxgbe/base/common.h
drivers/net/cxgbe/base/t4_hw.c
drivers/net/cxgbe/base/t4fw_interface.h
drivers/net/cxgbe/cxgbe_main.c