Files
linux/drivers/net/ethernet/intel/ice
Marcin Szycik f00f492439 ice: Fix VF-VF direction matching in drop rule in switchdev
[ Upstream commit 68c51db3a1 ]

When adding a drop rule on a VF, rule direction is not being set, which
results in it always being set to ingress (ICE_ESWITCH_FLTR_INGRESS
equals 0). Because of this, drop rules added on port representors don't
match any packets.

To fix it, set rule direction in drop action to egress when netdev is a
port representor, otherwise set it to ingress.

Fixes: 0960a27bd4 ("ice: Add direction metadata")
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:59:36 +01:00
..
2023-03-07 13:02:01 -08:00
2023-01-19 08:18:03 -08:00
2023-01-19 08:18:03 -08:00
2022-02-09 09:24:45 -08:00
2023-10-13 16:47:12 -07:00
2023-01-19 08:18:03 -08:00
2023-08-17 10:43:06 -07:00
2023-03-28 09:42:05 -07:00
2023-07-19 09:56:50 -07:00