diff mbox series

[18/19] net/mlx5: fixed compilation warnings

Message ID 20210927133450.10653-19-srikanth.k@oneconvergence.com (mailing list archive)
State Superseded, archived
Delegated to: Raslan Darawsheh
Headers show
Series MLX5 FreeBSD support | expand

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Srikanth Kaka Sept. 27, 2021, 1:34 p.m. UTC
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@oneconvergence.com>
Signed-off-by: Vag Singh <vag.singh@oneconvergence.com>
Signed-off-by: Anand Thulasiram <avelu@juniper.net>
---
 drivers/net/mlx5/freebsd/mlx5_os.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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,