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

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
..
e1000 net: e1000: Remove unused declarations 2023-08-13 12:28:03 +01:00
e1000e e1000e: Add support for the next LOM generation 2023-08-24 12:55:25 -07:00
fm10k fm10k: Remove unnecessary aer.h include 2023-03-08 23:34:39 -08:00
i40e i40e: fix potential memory leaks in i40e_remove() 2023-11-20 11:58:55 +01:00
iavf iavf: Fix promiscuous mode configuration flow messages 2023-11-20 11:58:55 +01:00
ice ice: Fix VF-VF direction matching in drop rule in switchdev 2023-11-20 11:59:36 +01:00
igb igb: Fix potential memory leak in igb_add_ethtool_nfc_entry 2023-10-20 13:29:40 +01:00
igbvf igbvf: Change IGBVF_MIN to allow set rx/tx value between 64 and 80 2023-09-05 10:52:08 -07:00
igc igc: Fix ambiguity in the ethtool advertising 2023-10-20 18:15:38 -07:00
ixgbe ixgbe: fix crash with empty VF macvlan list 2023-10-10 11:31:50 +02:00
ixgbevf ixgbevf: Remove unused function declarations 2023-08-04 18:03:00 -07:00
e100.c e100: Fix possible use after free in e100_xmit_prepare 2022-11-23 08:38:22 -08:00
Kconfig ixgb: Remove ixgb driver 2023-03-19 10:51:07 +00:00
Makefile ixgb: Remove ixgb driver 2023-03-19 10:51:07 +00:00