eal: shut up warning about master lcore
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: 66cc45e293
("mem: replace memseg with memseg lists")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
This commit is contained in:
parent
b0a1502a27
commit
06bfd1cbb4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user