[Intel-wired-lan] [PART1 PATCH 11/11] i40e: always remove old filter when adding new FDir filter

Bowers, AndrewX andrewx.bowers at intel.com
Fri Mar 17 19:11:28 UTC 2017


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Jacob Keller
> Sent: Monday, February 6, 2017 2:39 PM
> To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
> Subject: [Intel-wired-lan] [PART1 PATCH 11/11] i40e: always remove old filter
> when adding new FDir filter
> 
> The previous code relied on i40e_match_fdir_input_set to determine when
> determining whether to free the old filter. Change this code so that we
> simply unconditionally delete the old filter, even if it's identical to the new
> filter. This ensures that we don't leak any memory, and that we always
> update the filters as expected.
> 
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 32 ++++++--------------------
>  1 file changed, 7 insertions(+), 25 deletions(-)

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




More information about the Intel-wired-lan mailing list