[prev in list] [next in list] [prev in thread] [next in thread]
List: dpdk-dev
Subject: [PATCH v2] net/ice: support original represented_port action
From: Zhichao Zeng <zhichaox.zeng () intel ! com>
Date: 2022-08-31 5:42:26
Message-ID: 20220831054226.279211-1-zhichaox.zeng () intel ! com
[Download RAW message or body]
Add support to send matching traffic to the original DCF port
with represented_port action by using DCF port id as ethdev_port_id.
Signed-off-by: Zhichao Zeng <zhichaox.zeng@intel.com>
---
v2: use id instead of name to represent port for comparing
---
drivers/net/ice/ice_switch_filter.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c
index da81e49bfa..240fa10750 100644
--- a/drivers/net/ice/ice_switch_filter.c
+++ b/drivers/net/ice/ice_switch_filter.c
@@ -1639,7 +1639,8 @@ ice_switch_parse_dcf_action(struct ice_dcf_adapter *ad,
rule_port_id = ad->parent.pf.dev_data->port_id;
backer_port_id = repr_dev->data->backer_port_id;
- if (backer_port_id != rule_port_id)
+ if (backer_port_id != rule_port_id &&
+ act_ethdev->port_id != rule_port_id)
goto invalid;
rule_info->sw_act.vsi_handle = repr_dev->data->representor_id;
--
2.25.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic