[Intel-wired-lan] [next PATCH S14 08/15] i40e: don't panic on VSI allocation failure
andrewx.bowers at intel.com
Fri Sep 11 21:15:20 UTC 2015
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Catherine Sullivan
> Sent: Monday, August 31, 2015 4:55 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S14 08/15] i40e: don't panic on VSI
> allocation failure
> From: Mitch Williams <mitch.a.williams at intel.com>
> In some circumstances, the firmware may fail to allocate a VSI for a VF.
> When this happens, the driver does not react well to the bad news and has a
> panic attack.
> To fix this problem, check the return value from i40e_alloc_vf_res and don't
> try to configure the device further if it failed. Additionally, explicitly clear the
> INIT bit when we free VF resources, so that this bit will be in the proper state
> in the failure case, and won't blow up elsewhere.
> Signed-off-by: Mitch Williams <mitch.a.williams at intel.com>
> Change-ID: I6a20ce2b59c3458fd832032e88fa28cd42500189
> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
Code changes present in tree, builds, compiles, passes traffic.
More information about the Intel-wired-lan