From: Alexander Kozyrev Date: Tue, 26 Jan 2021 15:13:35 +0000 (+0000) Subject: ethdev: add IPv6 DSCP option for modify field action X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8d00e4698e1ea3b4d5a358f538c3eefc86455121;p=dpdk.git ethdev: add IPv6 DSCP option for modify field action IPv6 DSCP field ID is missing from the original list of Field IDs for MODIFY_FIELD action. Add it to support IPv6 header fully. Add ipv6_dscp option for the corresponding header field in testpmd. Fixes: 73b68f4c54a0 ("ethdev: introduce generic modify flow action") Signed-off-by: Alexander Kozyrev Acked-by: Ajit Khaparde Acked-by: Ferruh Yigit --- diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 067e120743..f7d58b1f16 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -592,7 +592,7 @@ static const char *const modify_field_ids[] = { "start", "mac_dst", "mac_src", "vlan_type", "vlan_id", "mac_type", "ipv4_dscp", "ipv4_ttl", "ipv4_src", "ipv4_dst", - "ipv6_hoplimit", "ipv6_src", "ipv6_dst", + "ipv6_dscp", "ipv6_hoplimit", "ipv6_src", "ipv6_dst", "tcp_port_src", "tcp_port_dst", "tcp_seq_num", "tcp_ack_num", "tcp_flags", "udp_port_src", "udp_port_dst", diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h index 46e8ee70ab..68c68cdd6c 100644 --- a/lib/librte_ethdev/rte_flow.h +++ b/lib/librte_ethdev/rte_flow.h @@ -2842,6 +2842,7 @@ enum rte_flow_field_id { RTE_FLOW_FIELD_IPV4_TTL, RTE_FLOW_FIELD_IPV4_SRC, RTE_FLOW_FIELD_IPV4_DST, + RTE_FLOW_FIELD_IPV6_DSCP, RTE_FLOW_FIELD_IPV6_HOPLIMIT, RTE_FLOW_FIELD_IPV6_SRC, RTE_FLOW_FIELD_IPV6_DST,