> -----Original Message-----
> From: Stephen Hemminger <step...@networkplumber.org>
> Sent: Wednesday, August 26, 2020 6:05 PM
> To: Dumitrescu, Cristian <cristian.dumitre...@intel.com>
> Cc: dev@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.dumitre...@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

Reply via email to