[dpdk-dev] [PATCH 18/19] net/mlx5: fixed compilation warnings

Srikanth Kaka srikanth.k at oneconvergence.com
Mon Sep 27 15:34:49 CEST 2021


In FreeBSD, interface name instead of index is for network stack operations
The ALLMULTI is always enabled by kernel driver, we only check if the kernel
has enabled it or not and then accordingly enable/disable in PMD

Signed-off-by: Srikanth Kaka <srikanth.k at oneconvergence.com>
Signed-off-by: Vag Singh <vag.singh at oneconvergence.com>
Signed-off-by: Anand Thulasiram <avelu at juniper.net>
---
 drivers/net/mlx5/freebsd/mlx5_os.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/mlx5/freebsd/mlx5_os.c b/drivers/net/mlx5/freebsd/mlx5_os.c
index cf394763fa..376cceadb0 100644
--- a/drivers/net/mlx5/freebsd/mlx5_os.c
+++ b/drivers/net/mlx5/freebsd/mlx5_os.c
@@ -2516,6 +2516,7 @@ mlx5_os_vf_mac_addr_modify(struct mlx5_priv *priv,
 	char ifname[IF_NAMESIZE];
 	int ret;
 
+	RTE_SET_USED(iface_idx);
 	ret = mlx5_get_ifname_sysfs(priv->sh->ibdev_path, ifname);
 	if (!ret)
 		ret = mlx5_inet_mac_addr_set(priv->nl_socket_route, ifname,
@@ -2569,6 +2570,7 @@ mlx5_os_set_allmulti(struct rte_eth_dev *dev, int enable)
 	char ifname[IF_NAMESIZE];
 	int ret;
 
+	RTE_SET_USED(enable);
 	ret = mlx5_get_ifname_sysfs(priv->sh->ibdev_path, ifname);
 	if (!ret)
 		ret = mlx5_inet_check_allmulti_flag(priv->nl_socket_route,
-- 
2.30.2



More information about the dev mailing list