]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: delete filter after adding its replacement when converting
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 11 Nov 2016 20:39:28 +0000 (12:39 -0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:41:48 +0000 (19:41 -0500)
commit1a7e9735f423c45c22e54b08a38b1ff3b96a6342
tree456033f79382030d1100069fbd732cf154e3f3e7
parent9b976b4e40dc2346be19ec3561b122628031db7c
i40e: delete filter after adding its replacement when converting

Orabug: 24568124

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.

Change-ID: Icba07ddd04ecc6a3b27c2e29f2c1c8673d266826
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 756970255a58c0f5ff9f9c5bba6fb47c70804077)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c