]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix napi delete calls for remove
authorDave Ertman <david.m.ertman@intel.com>
Fri, 26 Oct 2018 17:40:57 +0000 (10:40 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 6 Nov 2018 20:46:47 +0000 (12:46 -0800)
commitb5cf472e8840050c0f4393582e8931d0fe84a9bf
tree16a637f6ad2598d3a381577a68a7bdf26a777689
parent23a52e297852a1310b9dcbd7cb3e3f8bd1bcd5e8
ice: Fix napi delete calls for remove

In the remove path, the vsi->netdev is being set to NULL before the call
to free vectors. This is causing the netif_napi_del call to never be made.

Add a call to ice_napi_del to the same location as the calls to
unregister_netdev and just prior to them. This will use the reverse flow
as the register and netif_napi_add calls.

Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_main.c