summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_common.c
diff options
context:
space:
mode:
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>2019-07-25 02:53:55 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-08-26 23:02:48 -0700
commitf27db2e65e1134c4173ced2db4aebade47485dc5 (patch)
tree28ab2d9f3ecb4d0cea52d359e5c594fe0cfb8438 /drivers/net/ethernet/intel/ice/ice_common.c
parent2935824873890de1503c0798c20833bb72a6c7c6 (diff)
downloadlinux-f27db2e65e1134c4173ced2db4aebade47485dc5.tar.bz2
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.c')
0 files changed, 0 insertions, 0 deletions