The mlx5 PMD uses Netlink socket to communicate with Infiniband devices kernel drivers to perform some control and setup operations. The kernel drivers send the information back to the user mode with Netlink messages which are processed in libnl callback routine. This routine perform reply message (or set of messages) processing and returned the processing result in ibindex field of provided context structure (of mlx5_nl_ifindex_data type). The zero ibindex value meant an error of reply message processing. It was found in some configurations the zero is valid value for ibindex and error was wrongly raised. To avoid this the new flags field is provided in context structure, attribute processing flags are introduced and these flags are used to decide whether no error occurred and valid queried values are returned. Fixes: e505508a3858 ("net/mlx5: modify get ifindex routine for multiport IB") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
DPDK is a set of libraries and drivers for fast packet processing. It supports many processor architectures and both FreeBSD and Linux. The DPDK uses the Open Source BSD-3-Clause license for the core libraries and drivers. The kernel components are GPL-2.0 licensed. Please check the doc directory for release notes, API documentation, and sample application information. For questions and usage discussions, subscribe to: users@dpdk.org Report bugs and issues to the development mailing list: dev@dpdk.org
Description
Languages
C
99.1%
Meson
0.5%
Python
0.2%
Shell
0.1%