ice: Fix VF-VF filter rules in switchdev mode
authorAniruddha Paul <aniruddha.paul@intel.com>
Fri, 13 Oct 2023 13:43:42 +0000 (19:13 +0530)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 7 Nov 2023 00:43:01 +0000 (16:43 -0800)
commit8b3c8c55ccbc02920b0ae6601c66df24f0d833bd
tree0291a224ffd70ed995b912370eb3b825fdcb5c94
parente1db8c2a01d7e12bd566106fbeefa3c5cccd2003
ice: Fix VF-VF filter rules in switchdev mode

Any packet leaving VSI i.e VF's VSI is considered as
egress traffic by HW, thus failing to match the added
rule.

Mark the direction for redirect rules as below:
1. VF-VF - Egress
2. Uplink-VF - Ingress
3. VF-Uplink - Egress
4. Link_Partner-Uplink - Ingress
5. Link_Partner-VF - Ingress

Fixes: 0960a27bd479 ("ice: Add direction metadata")
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Aniruddha Paul <aniruddha.paul@intel.com>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_tc_lib.c