numam-dpdk/drivers/net/bonding
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
..
eth_bond_8023ad_private.h net/bonding: change state machine to defaulted 2020-07-21 13:54:54 +02:00
eth_bond_private.h net/bonding: fix adding itself as its slave 2021-04-20 03:36:05 +02:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
rte_eth_bond_8023ad.c net/bonding: fix LACP system address check 2021-03-08 12:32:33 +01:00
rte_eth_bond_8023ad.h replace packed attributes 2020-04-16 18:16:46 +02:00
rte_eth_bond_alb.c rename private header files 2019-10-27 22:03:06 +01:00
rte_eth_bond_alb.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
rte_eth_bond_api.c net/bonding: fix adding itself as its slave 2021-04-20 03:36:05 +02:00
rte_eth_bond_args.c net/bonding: fix socket ID check 2021-04-27 14:48:08 +02:00
rte_eth_bond_flow.c rename private header files 2019-10-27 22:03:06 +01:00
rte_eth_bond_pmd.c net/bonding: fix socket ID check 2021-04-27 14:48:08 +02:00
rte_eth_bond.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00