DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eal: shut up warning about master lcore
@ 2018-04-26  0:48 Stephen Hemminger
  2018-04-26  7:44 ` Burakov, Anatoly
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2018-04-26  0:48 UTC (permalink / raw)
  To: anatoly.burakov; +Cc: dev, Stephen Hemminger, Stephen Hemminger

This message looks suspicious and seen on healthy testpmd.
 EAL: WARNING: Master core has no memory on local socket!

The message is wrong: the master lcore is 0 and its socket is 0
and there are multiple available memory segments on socket 0.

At that point in the startup process, the count value is zero,
meaning they are not used yet so the check_socket gets confused.

Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/librte_eal/linuxapp/eal/eal.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c
index 200e879d241a..e2c0bd649429 100644
--- a/lib/librte_eal/linuxapp/eal/eal.c
+++ b/lib/librte_eal/linuxapp/eal/eal.c
@@ -645,10 +645,7 @@ check_socket(const struct rte_memseg_list *msl, void *arg)
 {
 	int *socket_id = arg;
 
-	if (msl->socket_id == *socket_id && msl->memseg_arr.count != 0)
-		return 1;
-
-	return 0;
+	return *socket_id == msl->socket_id;
 }
 
 static void
-- 
2.17.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] eal: shut up warning about master lcore
  2018-04-26  0:48 [dpdk-dev] [PATCH] eal: shut up warning about master lcore Stephen Hemminger
@ 2018-04-26  7:44 ` Burakov, Anatoly
  2018-04-26 15:41   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Burakov, Anatoly @ 2018-04-26  7:44 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev, Stephen Hemminger

On 26-Apr-18 1:48 AM, Stephen Hemminger wrote:
> This message looks suspicious and seen on healthy testpmd.
>   EAL: WARNING: Master core has no memory on local socket!
> 
> The message is wrong: the master lcore is 0 and its socket is 0
> and there are multiple available memory segments on socket 0.
> 
> At that point in the startup process, the count value is zero,
> meaning they are not used yet so the check_socket gets confused.
> 
> Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists")
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---

Was aware of this and going to fix it myself, but higher priority items 
popped up. Thanks for fixing this!

Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>

-- 
Thanks,
Anatoly

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] eal: shut up warning about master lcore
  2018-04-26  7:44 ` Burakov, Anatoly
@ 2018-04-26 15:41   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2018-04-26 15:41 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev, Burakov, Anatoly, Stephen Hemminger

26/04/2018 09:44, Burakov, Anatoly:
> On 26-Apr-18 1:48 AM, Stephen Hemminger wrote:
> > This message looks suspicious and seen on healthy testpmd.
> >   EAL: WARNING: Master core has no memory on local socket!
> > 
> > The message is wrong: the master lcore is 0 and its socket is 0
> > and there are multiple available memory segments on socket 0.
> > 
> > At that point in the startup process, the count value is zero,
> > meaning they are not used yet so the check_socket gets confused.
> > 
> > Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists")
> > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> > ---
> 
> Was aware of this and going to fix it myself, but higher priority items 
> popped up. Thanks for fixing this!
> 
> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-26 15:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-26  0:48 [dpdk-dev] [PATCH] eal: shut up warning about master lcore Stephen Hemminger
2018-04-26  7:44 ` Burakov, Anatoly
2018-04-26 15:41   ` 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).