[dpdk-dev] [PATCH v2] net/mlx5: fix netlink rdma socket callback routine
rasland at mellanox.com
Tue Sep 10 16:28:05 CEST 2019
> -----Original Message-----
> From: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
> Sent: Tuesday, September 10, 2019 4:52 PM
> To: dev at dpdk.org
> Cc: Raslan Darawsheh <rasland at mellanox.com>; stable at dpdk.org
> Subject: [PATCH v2] net/mlx5: fix netlink rdma socket callback routine
> 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 at dpdk.org
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
> v2: reverted back local parameter gathering within one Netlink message
> in callback routine. It allows to avoid parameters overwriting in
> case of reply contains multiple messages for all Infiniband devices
> in the system.
Replaced V1 with V2 due to some issue was in V1,
So applied v2 to next-net-mlx,
More information about the dev