ice: Add new VSI states to track netdev alloc/registration
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tue, 2 Mar 2021 18:15:41 +0000 (10:15 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 15 Apr 2021 00:00:05 +0000 (17:00 -0700)
commita476d72abe6cdd2cccc3dbf5a844286cfe9684ed
tree7ff0f494526d82daecfb4a6c7701894ae5252733
parent7e408e07b42dceba4bc6630ff9ce9a55fcb043e0
ice: Add new VSI states to track netdev alloc/registration

Add two new VSI states, one to track if a netdev for the VSI has been
allocated and the other to track if the netdev has been registered.
Call unregister_netdev/free_netdev only when the corresponding state
bits are set.

Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@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