1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2020 Mellanox Technologies, Ltd
11 * Not needed by this file; included to work around the lack of off_t
12 * definition for mlx5dv.h with unpatched rdma-core versions.
14 #include <sys/types.h>
16 #include <rte_ethdev_driver.h>
17 #include <rte_common.h>
20 #include <mlx5_malloc.h>
23 * Release VLAN network device, created for VM workaround.
26 * Ethernet device object, Netlink context provider.
28 * Object representing the network device to release.
31 mlx5_vlan_vmwa_release(struct rte_eth_dev *dev,
32 struct mlx5_vf_vlan *vlan)
39 * Acquire VLAN interface with specified tag for VM workaround.
42 * Ethernet device object, Netlink context provider.
44 * Object representing the network device to acquire.
47 mlx5_vlan_vmwa_acquire(struct rte_eth_dev *dev,
48 struct mlx5_vf_vlan *vlan)
55 * Create per ethernet device VLAN VM workaround context
58 * Pointer to Ethernet device structure.
63 * Pointer to mlx5_nl_vlan_vmwa_context
66 mlx5_vlan_vmwa_init(struct rte_eth_dev *dev, uint32_t ifindex)
69 RTE_SET_USED(ifindex);
74 * Destroy per ethernet device VLAN VM workaround context
77 * Pointer to VM context
80 mlx5_vlan_vmwa_exit(void *vmctx)