path: root/drivers/net/mlx5/mlx5_nl.c
diff options
authorNelio Laranjeiro <>2018-07-24 08:50:27 +0200
committerThomas Monjalon <>2018-07-26 14:05:52 +0200
commit5366074b019aaf1a27eb5912b928496e871f73c4 (patch)
tree57d5d867314806876a3367b5b63fab88aa76c330 /drivers/net/mlx5/mlx5_nl.c
parentc618e7e82bfed1da91f1dbabdd06e0a39fdb7b78 (diff)
net/mlx5: fix route Netlink message overflow
Route Netlink message socket is wrongly initialized by registering to the route link group. This causes the socket to receive all link message related to routes whereas the PMD do not expect to receive such information. In some situation it ends by filling the socket at a point that any new message cannot be exchanged. As the PMD is not expected to process such broadcast messages, the parameter in the nl_group in the function is also remove. Fixes: ccdcba53a3f4 ("net/mlx5: use Netlink to add/remove MAC addresses") Cc: Signed-off-by: Zijie Pan <> Signed-off-by: Nelio Laranjeiro <> Acked-by: Adrien Mazarguil <>
Diffstat (limited to 'drivers/net/mlx5/mlx5_nl.c')
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/mlx5/mlx5_nl.c b/drivers/net/mlx5/mlx5_nl.c
index 008cd2c..0cc26f9 100644
--- a/drivers/net/mlx5/mlx5_nl.c
+++ b/drivers/net/mlx5/mlx5_nl.c
@@ -89,8 +89,6 @@ struct mlx5_nl_ifindex_data {
* Opens a Netlink socket.
- * @param nl_groups
- * Netlink group value (e.g. RTMGRP_LINK).
* @param protocol
* Netlink protocol (e.g. NETLINK_ROUTE, NETLINK_RDMA).
@@ -99,14 +97,13 @@ struct mlx5_nl_ifindex_data {
* rte_errno is set.
-mlx5_nl_init(uint32_t nl_groups, int protocol)
+mlx5_nl_init(int protocol)
int fd;
int sndbuf_size = MLX5_SEND_BUF_SIZE;
int rcvbuf_size = MLX5_RECV_BUF_SIZE;
struct sockaddr_nl local = {
.nl_family = AF_NETLINK,
- .nl_groups = nl_groups,
int ret;