* [dpdk-dev] [PATCH] mk: link ring mempool by default for app build
@ 2017-04-13 9:02 Shreyansh Jain
2017-04-18 12:04 ` Olivier MATZ
0 siblings, 1 reply; 4+ messages in thread
From: Shreyansh Jain @ 2017-04-13 9:02 UTC (permalink / raw)
To: olivier.matz
Cc: dev, thomas.monjalon, bruce.richardson, john.miller, Shreyansh Jain
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
---
Context:
From the discussion in [1], it was observed that application should
have a default pool already linked even in case of shared builds.
Ring is especially important because packet mbuf creation API refer to
ring_mp_mc as default handler.
Documentation for this is pending.
[1] http://dpdk.org/ml/archives/dev/2017-April/063819.html
mk/rte.app.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mk/rte.app.mk b/mk/rte.app.mk
index 4c659e9..2462808 100644
--- a/mk/rte.app.mk
+++ b/mk/rte.app.mk
@@ -97,6 +97,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_RING) += -lrte_ring
_LDLIBS-$(CONFIG_RTE_LIBRTE_EAL) += -lrte_eal
_LDLIBS-$(CONFIG_RTE_LIBRTE_CMDLINE) += -lrte_cmdline
_LDLIBS-$(CONFIG_RTE_LIBRTE_REORDER) += -lrte_reorder
+_LDLIBS-$(CONFIG_RTE_DRIVER_MEMPOOL_RING) += -lrte_mempool_ring
ifeq ($(CONFIG_RTE_EXEC_ENV_LINUXAPP),y)
_LDLIBS-$(CONFIG_RTE_LIBRTE_KNI) += -lrte_kni
@@ -104,7 +105,6 @@ endif
ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),n)
# plugins (link only if static libraries)
-_LDLIBS-$(CONFIG_RTE_DRIVER_MEMPOOL_RING) += -lrte_mempool_ring
_LDLIBS-$(CONFIG_RTE_DRIVER_MEMPOOL_STACK) += -lrte_mempool_stack
_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += -lrte_pmd_af_packet
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] mk: link ring mempool by default for app build
2017-04-13 9:02 [dpdk-dev] [PATCH] mk: link ring mempool by default for app build Shreyansh Jain
@ 2017-04-18 12:04 ` Olivier MATZ
2017-04-18 12:25 ` Shreyansh Jain
0 siblings, 1 reply; 4+ messages in thread
From: Olivier MATZ @ 2017-04-18 12:04 UTC (permalink / raw)
To: Shreyansh Jain; +Cc: dev, thomas, bruce.richardson, john.miller
On Thu, 13 Apr 2017 14:32:07 +0530, Shreyansh Jain <shreyansh.jain@nxp.com> wrote:
> Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Fixes: 9a8e9b57f544 ("mempool: move ring handler as a driver")
Acked-by: Olivier Matz <olivier.matz@6wind.com>
> ---
> Context:
> From the discussion in [1], it was observed that application should
> have a default pool already linked even in case of shared builds.
> Ring is especially important because packet mbuf creation API refer to
> ring_mp_mc as default handler.
>
> Documentation for this is pending.
>
> [1] http://dpdk.org/ml/archives/dev/2017-April/063819.html
Maybe this comment could go in the patch.
Thanks,
Olivier
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] mk: link ring mempool by default for app build
2017-04-18 12:04 ` Olivier MATZ
@ 2017-04-18 12:25 ` Shreyansh Jain
2017-04-19 12:26 ` Thomas Monjalon
0 siblings, 1 reply; 4+ messages in thread
From: Shreyansh Jain @ 2017-04-18 12:25 UTC (permalink / raw)
To: Olivier MATZ; +Cc: dev, thomas, bruce.richardson, john.miller
Hi Olivier,
> -----Original Message-----
> From: Olivier MATZ [mailto:olivier.matz@6wind.com]
> Sent: Tuesday, April 18, 2017 5:34 PM
> To: Shreyansh Jain <shreyansh.jain@nxp.com>
> Cc: dev@dpdk.org; thomas@monjalon.net; bruce.richardson@intel.com;
> john.miller@atomicrules.com
> Subject: Re: [PATCH] mk: link ring mempool by default for app build
>
> On Thu, 13 Apr 2017 14:32:07 +0530, Shreyansh Jain <shreyansh.jain@nxp.com>
> wrote:
> > Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
>
> Fixes: 9a8e9b57f544 ("mempool: move ring handler as a driver")
>
> Acked-by: Olivier Matz <olivier.matz@6wind.com>
>
> > ---
> > Context:
> > From the discussion in [1], it was observed that application should
> > have a default pool already linked even in case of shared builds.
> > Ring is especially important because packet mbuf creation API refer to
> > ring_mp_mc as default handler.
> >
> > Documentation for this is pending.
> >
> > [1] http://dpdk.org/ml/archives/dev/2017-April/063819.html
>
> Maybe this comment could go in the patch.
I can send another version of the patch with some part of the above documentation within the patch commit.
>
> Thanks,
> Olivier
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] mk: link ring mempool by default for app build
2017-04-18 12:25 ` Shreyansh Jain
@ 2017-04-19 12:26 ` Thomas Monjalon
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2017-04-19 12:26 UTC (permalink / raw)
To: Shreyansh Jain; +Cc: dev, Olivier MATZ, bruce.richardson, john.miller
18/04/2017 14:25, Shreyansh Jain:
> Hi Olivier,
> From: Olivier MATZ [mailto:olivier.matz@6wind.com]
> > On Thu, 13 Apr 2017 14:32:07 +0530, Shreyansh Jain
> > <shreyansh.jain@nxp.com> wrote:
> > > Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
> >
> > Fixes: 9a8e9b57f544 ("mempool: move ring handler as a driver")
> >
> > Acked-by: Olivier Matz <olivier.matz@6wind.com>
> >
> > > ---
> > >
> > > Context:
> > > From the discussion in [1], it was observed that application should
> > > have a default pool already linked even in case of shared builds.
> > > Ring is especially important because packet mbuf creation API refer to
> > > ring_mp_mc as default handler.
> > >
> > > Documentation for this is pending.
> > >
> > > [1] http://dpdk.org/ml/archives/dev/2017-April/063819.html
> >
> > Maybe this comment could go in the patch.
>
> I can send another version of the patch with some part of the above
> documentation within the patch commit.
Moved the mempool ring line below the mempool line,
Added the explanations, and
Applied, thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-04-19 12:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-13 9:02 [dpdk-dev] [PATCH] mk: link ring mempool by default for app build Shreyansh Jain
2017-04-18 12:04 ` Olivier MATZ
2017-04-18 12:25 ` Shreyansh Jain
2017-04-19 12:26 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).