]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: propagate properly
authorMitch Williams <mitch.a.williams@intel.com>
Mon, 9 Nov 2015 23:35:50 +0000 (15:35 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 3 Dec 2015 10:23:33 +0000 (02:23 -0800)
commit6f064badd0ecf2f9c73c446c5bc7fc858cdaf4e5
tree82b61cbbc327028bf689dc0b096a5c0c67a7210f
parent901a2fc31addf50108648945bc08064ba23df0f0
i40e: propagate properly

i40e_sync_vsi_filters() is the surly teenager of this driver. It says
it's going to report errors, but it doesn't actually do that most of the
time. And when it does, it leaves a mess.

Change this function to have a common exit point so it will properly
release the busy lock on the VSI. Propagate errors to the callers.
Finally, adjust a few callers to check for and deal with errors from
this function.

Change-ID: Ic6af4956491e72402ebb3c538a3c31a0ad7f8667
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c