iavf: Handle ntuple on/off based on new state machines for flow director
authorPiotr Gardocki <piotrx.gardocki@intel.com>
Wed, 22 Nov 2023 03:47:16 +0000 (22:47 -0500)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 12 Dec 2023 19:21:30 +0000 (11:21 -0800)
commit09d23b8918f9ab0f8114f6b94f2faf8bde3fb52a
tree6cc4fb0e8f074d2363ad68b84f89712bd95e0ded
parent3a0b5a2929fdeda63fc921c2dbed237059acf732
iavf: Handle ntuple on/off based on new state machines for flow director

ntuple-filter feature on/off:
Default is on. If turned off, the filters will be removed from both
PF and iavf list. The removal is irrespective of current filter state.

Steps to reproduce:
-------------------

1. Ensure ntuple is on.

ethtool -K enp8s0 ntuple-filters on

2. Create a filter to receive the traffic into non-default rx-queue like 15
and ensure traffic is flowing into queue into 15.
Now, turn off ntuple. Traffic should not flow to configured queue 15.
It should flow to default RX queue.

Fixes: 0dbfbabb840d ("iavf: Add framework to enable ethtool ntuple filters")
Signed-off-by: Piotr Gardocki <piotrx.gardocki@intel.com>
Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com>
Signed-off-by: Ranganatha Rao <ranganatha.rao@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c