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 30CF7A054F; Tue, 16 Mar 2021 05:18:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7B4EE24274B; Tue, 16 Mar 2021 05:18:29 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by mails.dpdk.org (Postfix) with ESMTP id 86CB4242743 for ; Tue, 16 Mar 2021 05:18:28 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from jiaweiw@nvidia.com) with SMTP; 16 Mar 2021 06:18:27 +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 12G4IRsk019598; Tue, 16 Mar 2021 06:18:27 +0200 From: Jiawei Wang To: orika@nvidia.com, viacheslavo@nvidia.com, xiaoyun.li@intel.com Cc: dev@dpdk.org, stable@dpdk.org, Mohammad Abdul Awal , Adrien Mazarguil , Nelio Laranjeiro Date: Tue, 16 Mar 2021 06:18:27 +0200 Message-Id: <1615868307-254141-1-git-send-email-jiaweiw@nvidia.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] app/testpmd: fix the miss configuration for NVGRE encap 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" 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