[Intel-wired-lan] [next PATCH S54 04/15] i40e: delete filter after adding its replacement when converting

Bowers, AndrewX andrewx.bowers at intel.com
Thu Nov 17 19:25:24 UTC 2016


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Bimmy Pujari
> Sent: Friday, November 11, 2016 12:39 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S54 04/15] i40e: delete filter after
> adding its replacement when converting
> 
> From: Jacob Keller <jacob.e.keller at intel.com>
> 
> Fix a subtle issue with the code for converting VID=-1 filters into VID=0 filters
> when adding a new VLAN. Previously the code deleted the VID=-1 filter, and
> then added a new VID=0 filter. In the rare case that the addition fails due to -
> ENOMEM, we end up completely deleting the filter which prevents recovery
> if memory pressure subsides. While it is not strictly an issue because it is
> likely that memory issues would result in many other problems, we shouldn't
> delete the filter until after the addition succeeds.
> 
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> Change-ID: Icba07ddd04ecc6a3b27c2e29f2c1c8673d266826
> ---
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list