[dpdk-dev] [PATCH v9 20/27] ethdev: register ether layer as a class

Bruce Richardson bruce.richardson at intel.com
Thu Jul 5 13:13:56 CEST 2018


On Thu, Jul 05, 2018 at 11:36:38AM +0200, Gaëtan Rivet wrote:
> Hi Andrew,
> 
> On Wed, Jul 04, 2018 at 03:20:17PM +0300, Andrew Rybchenko wrote:
> > On 07/04/2018 01:15 AM, Gaetan Rivet wrote:
> > > Signed-off-by: Gaetan Rivet <gaetan.rivet at 6wind.com>
> > > ---
> > >   lib/librte_ethdev/Makefile        |  3 +-
> > >   lib/librte_ethdev/rte_class_eth.c | 79 +++++++++++++++++++++++++++++++++++++++
> > >   2 files changed, 81 insertions(+), 1 deletion(-)
> > >   create mode 100644 lib/librte_ethdev/rte_class_eth.c
> > > 
> > > diff --git a/lib/librte_ethdev/Makefile b/lib/librte_ethdev/Makefile
> > > index 2fa133fbc..d4c3a8d06 100644
> > > --- a/lib/librte_ethdev/Makefile
> > > +++ b/lib/librte_ethdev/Makefile
> > > @@ -12,7 +12,7 @@ CFLAGS += -DALLOW_EXPERIMENTAL_API
> > >   CFLAGS += -O3
> > >   CFLAGS += $(WERROR_FLAGS)
> > >   LDLIBS += -lrte_net -lrte_eal -lrte_mempool -lrte_ring
> > > -LDLIBS += -lrte_mbuf
> > > +LDLIBS += -lrte_mbuf -lrte_kvargs
> > >   EXPORT_MAP := rte_ethdev_version.map
> > > @@ -20,6 +20,7 @@ LIBABIVER := 9
> > >   SRCS-y += eth_private.c
> > >   SRCS-y += rte_ethdev.c
> > > +SRCS-y += rte_class_eth.c
> > >   SRCS-y += rte_flow.c
> > >   SRCS-y += rte_tm.c
> > >   SRCS-y += rte_mtr.c
> > 
> > meson.build files should be updated as well.
> 
> The meson version required by DPDK is not available in my distribution.
> 
"pip3 install meson" works in just about all distros. I'd recommend using
meson from pip generally, since it tends to be very up to date. The latest
versions configure DPDK a lot faster than the older ones!

/Bruce


More information about the dev mailing list