Add VLAN vmwa structures to compilation success.
It is not yet supported in FreeBSD

Signed-off-by: Srikanth Kaka <srikant...@oneconvergence.com>
Signed-off-by: Vag Singh <vag.si...@oneconvergence.com>
Signed-off-by: Anand Thulasiram <av...@juniper.net>
---
 drivers/common/mlx5/freebsd/mlx5_inet.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/drivers/common/mlx5/freebsd/mlx5_inet.h 
b/drivers/common/mlx5/freebsd/mlx5_inet.h
index cc6a05928e..54ec87287d 100644
--- a/drivers/common/mlx5/freebsd/mlx5_inet.h
+++ b/drivers/common/mlx5/freebsd/mlx5_inet.h
@@ -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);
 
-- 
2.30.2

Reply via email to