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 D66DCA034F for ; Tue, 8 Jun 2021 06:51:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC80E410E7; Tue, 8 Jun 2021 06:51:53 +0200 (CEST) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by mails.dpdk.org (Postfix) with ESMTP id 4B303410E7 for ; Tue, 8 Jun 2021 06:51:52 +0200 (CEST) Received: from mail-qv1-f69.google.com ([209.85.219.69]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lqTiR-0000nr-V1 for stable@dpdk.org; Tue, 08 Jun 2021 04:51:52 +0000 Received: by mail-qv1-f69.google.com with SMTP id n3-20020a0cee630000b029020e62abfcbdso10772889qvs.16 for ; Mon, 07 Jun 2021 21:51:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wjaw+U3P10c6Cnajw9U5VnKioee3J16NFULeF/5aKGM=; b=OySqW1Aix9FqpCyXzTR0vilEbQh1Qf2wiBkVKhSQRdxJ/1Kr7zKsoSbfX5aYF+rrBp vxeCeKy0OMLH0OOYWmbz+f085Th41ulvb4UG+p5fd8y76aMq+LGpWDeaIIi/WnNGU6kf NaKyWJ6aDGG2mm+ax9FZcDsx+MelKVypJAuP+qY2vVSHy7mlANKJR4RbSQBG0Ce+FDw5 iyqNNf5fKr5YWnHvXw8i4xSfoiYNONNtT0sP8KXUZKuclwStbP3oTiRS/iS4ImL3Ssyb yWbF3pm1d1M3xM/PLkoDIh2yj4TcwGbA9FURmuC8o2OP6+bdQQxFwHYaoLrANxWmr7it 0IFw== X-Gm-Message-State: AOAM532rSsb3yk/rh5eNNvKBfHMX64DGT9Tb38jmH6NnwdaBkGajeA2Y PTjE37+pH/o8SnN5WgG1aESOC9S5/1OiUjzm9tpURWhXnZ75R4AsXcsiwzF190UD2PYk6IL6JPd KWKPQRFppcwqia8F5Kh4cdxS4UBWBjyLxTMTEqxUg X-Received: by 2002:a05:620a:1667:: with SMTP id d7mr19971166qko.462.1623127911108; Mon, 07 Jun 2021 21:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymtOoqjR/erdhvdT9xXlQZSfXdVjWJl5VJegLEEBFFS+lMlsQ/MNy8S0Ym33h7HUDB6Gg3hMVv0/6jWXxjbac= X-Received: by 2002:a05:620a:1667:: with SMTP id d7mr19971154qko.462.1623127910915; Mon, 07 Jun 2021 21:51:50 -0700 (PDT) MIME-Version: 1.0 References: <20210604133733.35056-1-jiaweiw@nvidia.com> In-Reply-To: <20210604133733.35056-1-jiaweiw@nvidia.com> From: Christian Ehrhardt Date: Tue, 8 Jun 2021 06:51:25 +0200 Message-ID: To: Jiawei Wang Cc: Ori Kam , Viacheslav Ovsiienko , Raslan Darawsheh , dpdk stable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [PATCH 19.11] app/testpmd: fix NVGRE encap configuration 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" On Fri, Jun 4, 2021 at 3:37 PM Jiawei Wang wrote: > > [ upstream commit 9b0da816bdec98c0d6c5d17ccdd337bdbafc3f75 ] > > 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 configurations while parsing the nvgre > encap. Thanks, while it is unsure if it will be 19.11.9 or later 19.11.10 it is applied now. > Fixes: dcd962fc6b4e ("app/testpmd: add NVGRE encap/decap") > > Signed-off-by: Jiawei Wang > --- > app/test-pmd/cmdline_flow.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c > index da3533c..0b76f7e 100644 > --- a/app/test-pmd/cmdline_flow.c > +++ b/app/test-pmd/cmdline_flow.c > @@ -4250,7 +4250,11 @@ static int comp_set_raw_index(struct context *, const struct token *, > .src_addr = nvgre_encap_conf.ipv4_src, > .dst_addr = nvgre_encap_conf.ipv4_dst, > }, > - .item_nvgre.flow_id = 0, > + .item_nvgre = { > + .c_k_s_rsvd0_ver = RTE_BE16(0x2000), > + .protocol = RTE_BE16(RTE_ETHER_TYPE_TEB), > + .flow_id = 0, > + }, > }; > memcpy(action_nvgre_encap_data->item_eth.dst.addr_bytes, > nvgre_encap_conf.eth_dst, RTE_ETHER_ADDR_LEN); > -- > 1.8.3.1 > -- Christian Ehrhardt Staff Engineer, Ubuntu Server Canonical Ltd