[PATCH v5 2/3] ethdev: add modify IPv6 protocol field
Rongwei Liu
rongweil at nvidia.com
Thu Feb 2 03:12:39 CET 2023
Hi Stephen
BR
Rongwei
> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> Sent: Thursday, February 2, 2023 00:56
> To: Rongwei Liu <rongweil at nvidia.com>
> Cc: dev at dpdk.org; Matan Azrad <matan at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Ori Kam <orika at nvidia.com>; NBU-Contact-
> Thomas Monjalon (EXTERNAL) <thomas at monjalon.net>; Raslan Darawsheh
> <rasland at nvidia.com>; Aman Singh <aman.deep.singh at intel.com>; Yuying
> Zhang <yuying.zhang at intel.com>; Ferruh Yigit <ferruh.yigit at amd.com>;
> Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
> Subject: Re: [PATCH v5 2/3] ethdev: add modify IPv6 protocol field
>
> External email: Use caution opening links or attachments
>
>
> On Wed, 1 Feb 2023 13:35:10 +0200
> Rongwei Liu <rongweil at nvidia.com> wrote:
>
> > diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
> > index 7a8516829c..b8156ebca2 100644
> > --- a/app/test-pmd/cmdline_flow.c
> > +++ b/app/test-pmd/cmdline_flow.c
> > @@ -811,7 +811,8 @@ static const char *const modify_field_ids[] = {
> > "udp_port_src", "udp_port_dst",
> > "vxlan_vni", "geneve_vni", "gtp_teid",
> > "tag", "mark", "meta", "pointer", "value",
> > - "ipv4_ecn", "ipv6_ecn", "gtp_psc_qfi", "meter_color", NULL
> > + "ipv4_ecn", "ipv6_ecn", "gtp_psc_qfi", "meter_color",
> > + "ipv6_proto", NULL
> > };
> >
>
> Would it be better to keep the table in alphabetical order here?
There are two arrays related to modify_filed resources: one for enumeration definition and the other is string for testpmd cli.
The sequence is strictly same.
" keep the table in alphabetical " needs to change both the array and make sure the new comer is the same index.
IMO, current approach is more friendly for new coming fields.
More information about the dev
mailing list