net/bonding: fix socket ID check
authorDavid Marchand <david.marchand@redhat.com>
Tue, 16 Jun 2020 09:46:37 +0000 (11:46 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:53 +0000 (06:18 +0200)
commit46dac7d1115c66762aa78e308d5f1c401ee5e3a0
tree83120fa22e0111263e9bca553bd6c34d551d0cf3
parent49b8d40b1f38ac4c197768c6e585c1c15c490f47
net/bonding: fix socket ID check

Caught by code review, rte_eth_dev_socket_id() returns -1 on error.
The code should behave the same, but still, do not use LCORE_ID_ANY for
something that is not a lcore id.

Fixes: c15c5897340d ("net/bonding: avoid allocating mempool on unknown socket")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Chas Williams <chas3@att.com>
drivers/net/bonding/rte_eth_bond_8023ad.c