i40e: Disable iWARP VSI PETCP_ENA flag on netdev down events
authorShiraz Saleem <shiraz.saleem@intel.com>
Mon, 18 Dec 2017 10:18:22 +0000 (05:18 -0500)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 23 Jan 2018 19:29:19 +0000 (11:29 -0800)
commit7b0b1a6d0ac983ce1928432285d0222d4fb7c38b
tree2739a1114c5b3eecc41ae2b6a0a64f8d8bddb67f
parentbc73234bcdb21169764519e6cac9aabf41e8933b
i40e: Disable iWARP VSI PETCP_ENA flag on netdev down events

Client close is overloaded to handle both un-registration and
netdev down event. On netdev down, i40iw client close is called
which unregisters the RDMA dev and this is too destructive
since the netdev is still registered.

Do not call client close/open on netdev down/up events. Instead
disable the PE TCP_ENA flag during a netdev down event. This
blocks all TCP traffic to the RDMA Protocol Engine. On netdev up,
re-enable the flag.

Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_client.c
drivers/net/ethernet/intel/i40e/i40e_client.h