[dpdk-dev] [PATCH v2 16/41] common/mlx5: add VLAN vmwa structures
Srikanth Kaka
srikanth.k at oneconvergence.com
Thu Oct 7 20:43:25 CEST 2021
Add VLAN vmwa structures to compilation success.
It is not yet supported in FreeBSD
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/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
More information about the dev
mailing list