diff options
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c index 5bacad01f0c9..1041fa2a7767 100644 --- a/drivers/net/ethernet/intel/ice/ice_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_lib.c | |||
@@ -1997,7 +1997,7 @@ int ice_cfg_vlan_pruning(struct ice_vsi *vsi, bool ena) | |||
1997 | status = ice_update_vsi(&vsi->back->hw, vsi->idx, ctxt, NULL); | 1997 | status = ice_update_vsi(&vsi->back->hw, vsi->idx, ctxt, NULL); |
1998 | if (status) { | 1998 | if (status) { |
1999 | netdev_err(vsi->netdev, "%sabling VLAN pruning on VSI handle: %d, VSI HW ID: %d failed, err = %d, aq_err = %d\n", | 1999 | netdev_err(vsi->netdev, "%sabling VLAN pruning on VSI handle: %d, VSI HW ID: %d failed, err = %d, aq_err = %d\n", |
2000 | ena ? "Ena" : "Dis", vsi->idx, vsi->vsi_num, status, | 2000 | ena ? "En" : "Dis", vsi->idx, vsi->vsi_num, status, |
2001 | vsi->back->hw.adminq.sq_last_status); | 2001 | vsi->back->hw.adminq.sq_last_status); |
2002 | goto err_out; | 2002 | goto err_out; |
2003 | } | 2003 | } |
@@ -2458,6 +2458,7 @@ int ice_vsi_release(struct ice_vsi *vsi) | |||
2458 | * on this wq | 2458 | * on this wq |
2459 | */ | 2459 | */ |
2460 | if (vsi->netdev && !ice_is_reset_in_progress(pf->state)) { | 2460 | if (vsi->netdev && !ice_is_reset_in_progress(pf->state)) { |
2461 | ice_napi_del(vsi); | ||
2461 | unregister_netdev(vsi->netdev); | 2462 | unregister_netdev(vsi->netdev); |
2462 | free_netdev(vsi->netdev); | 2463 | free_netdev(vsi->netdev); |
2463 | vsi->netdev = NULL; | 2464 | vsi->netdev = NULL; |