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 5D6EDA054F for ; Tue, 16 Mar 2021 04:24:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 396DA40042; Tue, 16 Mar 2021 04:24:24 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by mails.dpdk.org (Postfix) with ESMTP id 8E78040042 for ; Tue, 16 Mar 2021 04:24:22 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from jiaweiw@nvidia.com) with SMTP; 16 Mar 2021 05:24:17 +0200 Received: from nvidia.com (gen-l-vrt-281.mtl.labs.mlnx [10.237.44.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 12G3OHxH015007; Tue, 16 Mar 2021 05:24:17 +0200 From: Jiawei Wang To: orika@nvidia.com, viacheslavo@nvidia.com, xiaoyun.li@intel.com Cc: stable@dpdk.org, Mohammad Abdul Awal , Adrien Mazarguil , Nelio Laranjeiro Date: Tue, 16 Mar 2021 05:24:17 +0200 Message-Id: <1615865057-229973-1-git-send-email-jiaweiw@nvidia.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-stable] [PATCH] app/testpmd: fix the miss configuration for NVGRE encap X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" For NVGRE protocol, the default value of c_k_s_rsvd0_ver must be 0x2000, and protocol type must be 0x6558 in the NVGRE header. This patch updates these two configuraitons while parser the nvgre encap. Fixes: dcd962fc6b ("app/testpmd: add NVGRE encap/decap") Cc: stable@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 49d9f9c..2c40c69 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -5439,6 +5439,8 @@ static int comp_set_modify_field_id(struct context *, const struct token *, .src_addr = nvgre_encap_conf.ipv4_src, .dst_addr = nvgre_encap_conf.ipv4_dst, }, + .item_nvgre.c_k_s_rsvd0_ver = RTE_BE16(0x2000), + .item_nvgre.protocol = RTE_BE16(RTE_ETHER_TYPE_TEB), .item_nvgre.flow_id = 0, }; memcpy(action_nvgre_encap_data->item_eth.dst.addr_bytes, -- 1.8.3.1