[18/19] net/mlx5: fixed compilation warnings
Checks
Commit Message
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(+)
@@ -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,