Liu Xiaofeng
20a0286fd2
app/testpmd: check socket id validity
Now socket id is from device's numa_node, if it is invalid, just set it to 0 as default to avoid crash which will be caused by the reference to port_per_socket[socket_id]. Also one warning is displayed to user that port-numa-config and ring-numa-config parameters should be used along with --numa for NUMA mode. A check for NUMA_NO_CONFIG was also missing from init_fwd_stream(). Signed-off-by: Liu Xiaofeng <xiaofeng.liu@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Description
No description provided
Languages
C
99.1%
Meson
0.5%
Python
0.2%
Shell
0.1%