ice: Use the right function to enable/disable VSI
authorDave Ertman <david.m.ertman@intel.com>
Thu, 20 Sep 2018 00:43:06 +0000 (17:43 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 3 Oct 2018 14:42:30 +0000 (07:42 -0700)
commit124cd5479679d23a18c8ea67176c28be715ab678
treeaef339de9fdb4b89c0b49a1568b695f65e90fe92
parentd2b464a7ff6cda3e1d4eb070ed6558f0cd152d1c
ice: Use the right function to enable/disable VSI

The ice_ena/dis_vsi should have a single differentiating
factor to determine if the netdev_ops call is used or a
direct call to ice_vsi_open/close.  This is if the netif is
running or not.  If netif is running, use ndo_open/ndo_close.
Else, use ice_vsi_open/ice_vsi_close.

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