[dpdk-stable] [PATCH 19.11] app/testpmd: fix NVGRE encap configuration

Christian Ehrhardt christian.ehrhardt at canonical.com
Tue Jun 8 06:51:25 CEST 2021


On Fri, Jun 4, 2021 at 3:37 PM Jiawei Wang <jiaweiw at nvidia.com> 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 <jiaweiw at nvidia.com>
> ---
>  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


More information about the stable mailing list