@@ -12,6 +12,24 @@
#include "mlx5_common.h"
+/* VLAN netdev for VLAN workaround. */
+struct mlx5_nl_vlan_dev {
+ uint32_t refcnt;
+ uint32_t ifindex; /**< Own interface index. */
+};
+
+/*
+ * Array of VLAN devices created on the base of VF
+ * used for workaround in virtual environments.
+ */
+
+struct mlx5_nl_vlan_vmwa_context {
+ int nl_socket;
+ uint32_t vf_ifindex;
+ rte_spinlock_t sl;
+ struct mlx5_nl_vlan_dev vlan_dev[4096];
+};
+
int
mlx5_inet_check_allmulti_flag(int inetsk_fd, char *ifname, uint16_t port_id);