numam-dpdk/drivers/net
Chengchang Tang f294e04851 net/bonding: fix socket ID check
The socket ID entered by user is cast to an unsigned integer. However,
the value may be an illegal negative value, which may cause some
problems. In this case, an error should be returned.

In addition, the socket ID may be an invalid positive number, which is
also processed in this patch.

Fixes: 2efb58cbab ("bond: new link bonding library")
Cc: stable@dpdk.org

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2021-04-27 14:48:08 +02:00
..
af_packet drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
af_xdp net/af_xdp: use recvfrom only if busy polling enabled 2021-04-20 12:09:33 +02:00
ark net/ark: set generator delay thread name 2021-04-21 15:57:51 +02:00
atlantic drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
avp drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
axgbe drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
bnx2x drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
bnxt drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
bonding net/bonding: fix socket ID check 2021-04-27 14:48:08 +02:00
cxgbe drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
dpaa drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
dpaa2 drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
e1000 drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
ena drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
enetc drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
enic drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
failsafe drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
fm10k build: fix formatting of Meson lists 2021-05-04 15:01:47 +02:00
hinic drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
hns3 net/hns3: disable MAC status report interrupt 2021-04-27 13:15:10 +02:00
i40e drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
iavf drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
ice drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
igc drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
ionic drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
ipn3ke drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
ixgbe drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
kni net/kni: check init result 2021-04-26 12:17:39 +02:00
liquidio drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
memif drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
mlx4 drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
mlx5 common/mlx5: share hash list tool 2021-05-04 22:49:37 +02:00
mvneta drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
mvpp2 drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
netvsc drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
nfb drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
nfp drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
null drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
octeontx build: fix formatting of Meson lists 2021-05-04 15:01:47 +02:00
octeontx2 drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
octeontx_ep drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
pcap net/pcap: build on Windows 2021-04-21 23:48:38 +02:00
pfe drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
qede drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
ring drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
sfc drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
softnic ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +02:00
szedata2 drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
tap net/tap: fix interrupt vector array size 2021-04-26 17:30:42 +02:00
thunderx build: fix formatting of Meson lists 2021-05-04 15:01:47 +02:00
txgbe drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
vdev_netvsc drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
vhost drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
virtio drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
vmxnet3 drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
meson.build drivers: clean up build lists 2021-04-21 12:37:55 +02:00