[Intel-wired-lan] [next PATCH S49-V2 06/15] i40e: implement __i40e_del_filter and use where applicable

Bowers, AndrewX andrewx.bowers at intel.com
Fri Oct 7 19:30:06 UTC 2016


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Bimmy Pujari
> Sent: Wednesday, October 05, 2016 9:31 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S49-V2 06/15] i40e: implement
> __i40e_del_filter and use where applicable
> 
> From: Jacob Keller <jacob.e.keller at intel.com>
> 
> When inside a loop where we call i40e_del_filter we use an O(n^2) pattern
> where i40e_del_filter calls i40e_find_filter for us. We can avoid this O(n^2)
> logic by factoring a function, __i40e_del_filter() out from the i40e_del_filter
> code. This allows us to re-use the delete logic where appropriate without
> having to search for the filter twice.
> 
> This new function benefits several functions including i40e_vsi_add_vlan,
> i40e_vsi_kill_vlan, i40e_del_mac_vlan_all, and i40e_vsi_release.
> 
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> Change-ID: I75fabe0f53bf73f56b80d342e5fdcfcc28f4d3eb
> ---
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 92 ++++++++++++++++++----
> -------
>  1 file changed, 59 insertions(+), 33 deletions(-)

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




More information about the Intel-wired-lan mailing list