From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F3DE3A052A; Tue, 26 Jan 2021 16:13:43 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E96A140F50; Tue, 26 Jan 2021 16:13:43 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by mails.dpdk.org (Postfix) with ESMTP id E5219140F46 for ; Tue, 26 Jan 2021 16:13:41 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from akozyrev@nvidia.com) with SMTP; 26 Jan 2021 17:13:41 +0200 Received: from nvidia.com (pegasus02.mtr.labs.mlnx [10.210.16.122]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 10QFDemb005001; Tue, 26 Jan 2021 17:13:41 +0200 From: Alexander Kozyrev To: dev@dpdk.org Cc: viacheslavo@nvidia.com, orika@nvidia.com, thomas@monjalon.net, ferruh.yigit@intel.com, andrew.rybchenko@oktetlabs.ru, jerinjacobk@gmail.com, ajit.khaparde@broadcom.com Date: Tue, 26 Jan 2021 15:13:35 +0000 Message-Id: <20210126151335.17663-1-akozyrev@nvidia.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20210126033824.29175-1-akozyrev@nvidia.com> References: <20210126033824.29175-1-akozyrev@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] ethdev: add IPv6 DSCP option for modify field action X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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: 73b68f4c54a ("ethdev: introduce generic modify flow action") Signed-off-by: Alexander Kozyrev Acked-by: Ajit Khaparde --- v1: https://patchwork.dpdk.org/patch/87271/ v2: Squashed with testpmd patch: https://patchwork.dpdk.org/patch/87273/ --- app/test-pmd/cmdline_flow.c | 2 +- lib/librte_ethdev/rte_flow.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 0618611ab1..fb1cba932b 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, -- 2.24.1