ice: add method to disable FDIR SWAP option
authorJunfeng Guo <junfeng.guo@intel.com>
Thu, 25 Jul 2024 22:08:06 +0000 (16:08 -0600)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 13 Aug 2024 21:51:29 +0000 (14:51 -0700)
commitf217c187ea2eb31500fdea34f595f56433a164f1
tree316765a07ae02762c4214117c1c51b344381570a
parentfb4dae4ca315fe48f1a8a452172f29196b2a7f3d
ice: add method to disable FDIR SWAP option

The SWAP Flag in the FDIR Programming Descriptor doesn't work properly,
it is always set and cannot be unset (hardware bug). Thus, add a method
to effectively disable the FDIR SWAP option by setting the FDSWAP instead
of FDINSET registers.

Reviewed-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_flex_pipe.c
drivers/net/ethernet/intel/ice/ice_flex_pipe.h
drivers/net/ethernet/intel/ice/ice_flow.c