ice: Sanitize ice_ena_vsi and ice_dis_vsi
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Thu, 25 Jul 2019 09:53:55 +0000 (02:53 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 27 Aug 2019 06:02:48 +0000 (23:02 -0700)
commitf27db2e65e1134c4173ced2db4aebade47485dc5
tree28ab2d9f3ecb4d0cea52d359e5c594fe0cfb8438
parent2935824873890de1503c0798c20833bb72a6c7c6
ice: Sanitize ice_ena_vsi and ice_dis_vsi

1. ndo_open and ndo_stop are implemented by ice_open and ice_stop
   respectively. When enabling/disabling VSIs, just call
   ice_open/ice_stop instead of ndo_open/ndo_stop.

2. Rework logic around rtnl_lock/rtnl_unlock

3. In ice_ena_vsi, remove an unnecessary stack variable and return
   0 instead of err when __ICE_NEEDS_RESTART is not set.

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_main.c