Skip to content

Commit f18d202

Browse files
jacob-kellerJeff Kirsher
authored andcommitted
i40e: make use of i40e_vc_disable_vf
Replace i40e_vc_notify_vf_reset and i40e_reset_vf with a call to i40e_vc_disable_vf which does this exact thing. This matches similar code patterns throughout the driver. Signed-off-by: Jacob Keller <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent eeeddbb commit f18d202

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3388,8 +3388,7 @@ int i40e_ndo_set_vf_trust(struct net_device *netdev, int vf_id, bool setting)
33883388
goto out;
33893389

33903390
vf->trusted = setting;
3391-
i40e_vc_notify_vf_reset(vf);
3392-
i40e_reset_vf(vf, false);
3391+
i40e_vc_disable_vf(vf);
33933392
dev_info(&pf->pdev->dev, "VF %u is now %strusted\n",
33943393
vf_id, setting ? "" : "un");
33953394
out:

0 commit comments

Comments
 (0)