[dpdk-dev] [PATCH 40/40] examples/pipeline: add VXLAN encap example

Dumitrescu, Cristian cristian.dumitrescu at intel.com
Mon Sep 7 23:49:13 CEST 2020



> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> Sent: Wednesday, August 26, 2020 6:05 PM
> To: Dumitrescu, Cristian <cristian.dumitrescu at intel.com>
> Cc: dev at dpdk.org
> Subject: Re: [dpdk-dev] [PATCH 40/40] examples/pipeline: add VXLAN encap
> example
> 
> On Wed, 26 Aug 2020 16:14:45 +0100
> Cristian Dumitrescu <cristian.dumitrescu at intel.com> wrote:
> 
> > +/*
> > + * Packet headers.
> > + */
> > +static struct rte_swx_field_params ethernet_h[] = {
> > +	{"dst_addr", 48},
> > +	{"src_addr", 48},
> > +	{"ether_type", 16},
> > +};
> > +
> 
> Could these tables be made const? Looks like read-only data.

Thanks, Stephen, I just sent V2 where the examples have been completely reworked. The examples are now described in a pipeline specification file (closely aligned with P4) parsed at initialization, as opposed of C code.

Regards,
Cristian


More information about the dev mailing list