diff options
author | Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> | 2019-07-25 02:53:55 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2019-08-26 23:02:48 -0700 |
commit | f27db2e65e1134c4173ced2db4aebade47485dc5 (patch) | |
tree | 28ab2d9f3ecb4d0cea52d359e5c594fe0cfb8438 /drivers/net/ethernet/intel/ice/ice_common.c | |
parent | 2935824873890de1503c0798c20833bb72a6c7c6 (diff) | |
download | linux-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