i40e: Fix for adding multiple ethtool filters on the same location
authorPatryk Małek <patryk.malek@intel.com>
Wed, 27 Dec 2017 12:32:31 +0000 (07:32 -0500)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 26 Jan 2018 21:23:00 +0000 (13:23 -0800)
commitca6e1d0abe863ac24c437ea407be84acd8aa373b
treeabdd72b77e7b17ce810dd5fdd304575a7d404ef9
parentf34e308b671cbd9293da3bad82efe177822fe93f
i40e: Fix for adding multiple ethtool filters on the same location

This patch reorders i40e_add_del_fdir and i40e_update_ethtool_fdir_entry
calls so that we first remove an already existing filter (inside
i40e_update_ethtool_fdir_entry using i40e_add_del_fdir) and then
we add a new one with i40e_add_del_fdir.
After applying this patch, creating multiple identical filters (with
the same location) one after another doesn't revert their behavior
but behaves correctly.

Signed-off-by: Patryk Małek <patryk.malek@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c