common/mlx5: fix Netlink receive message buffer size
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Thu, 1 Jul 2021 07:31:33 +0000 (10:31 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 8 Jul 2021 20:09:29 +0000 (22:09 +0200)
commit32d1e4dbadba4bc3523d8b354458a4b979e5c2e6
tree6dde0ae9586ce11b5881b1bdbf3730aa36d73435
parent4b1cb50a86b73dceade317be4541f2c176c7ca5b
common/mlx5: fix Netlink receive message buffer size

If there are many VFs the Netlink message length sent by kernel
in reply to RTM_GETLINK request can be large. We should query
the size of message being received in advance and allocate
the large enough buffer to handle these large messages.

Fixes: ccdcba53a3f4 ("net/mlx5: use Netlink to add/remove MAC addresses")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/common/mlx5/linux/mlx5_nl.c