dpdk/drivers/net/mlx5/windows/mlx5_vlan_os.c
<<
>>
Prefs
   1/* SPDX-License-Identifier: BSD-3-Clause
   2 * Copyright 2020 Mellanox Technologies, Ltd
   3 */
   4
   5#include <stddef.h>
   6#include <errno.h>
   7#include <stdint.h>
   8#include <unistd.h>
   9
  10/*
  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.
  13 */
  14#include <sys/types.h>
  15
  16#include <ethdev_driver.h>
  17#include <rte_common.h>
  18
  19#include <mlx5.h>
  20#include <mlx5_malloc.h>
  21
  22/*
  23 * Release VLAN network device, created for VM workaround.
  24 *
  25 * @param[in] dev
  26 *   Ethernet device object, Netlink context provider.
  27 * @param[in] vlan
  28 *   Object representing the network device to release.
  29 */
  30void
  31mlx5_vlan_vmwa_release(struct rte_eth_dev *dev,
  32                            struct mlx5_vf_vlan *vlan)
  33{
  34        RTE_SET_USED(dev);
  35        RTE_SET_USED(vlan);
  36}
  37
  38/**
  39 * Acquire VLAN interface with specified tag for VM workaround.
  40 *
  41 * @param[in] dev
  42 *   Ethernet device object, Netlink context provider.
  43 * @param[in] vlan
  44 *   Object representing the network device to acquire.
  45 */
  46void
  47mlx5_vlan_vmwa_acquire(struct rte_eth_dev *dev,
  48                            struct mlx5_vf_vlan *vlan)
  49{
  50        RTE_SET_USED(dev);
  51        RTE_SET_USED(vlan);
  52}
  53
  54/*
  55 * Create per ethernet device VLAN VM workaround context
  56 *
  57 * @param dev
  58 *   Pointer to Ethernet device structure.
  59 * @param ifindex
  60 *   Interface index.
  61 *
  62 * @Return
  63 *   Pointer to mlx5_nl_vlan_vmwa_context
  64 */
  65void *
  66mlx5_vlan_vmwa_init(struct rte_eth_dev *dev, uint32_t ifindex)
  67{
  68        RTE_SET_USED(dev);
  69        RTE_SET_USED(ifindex);
  70        return NULL;
  71}
  72
  73/*
  74 * Destroy per ethernet device VLAN VM workaround context
  75 *
  76 * @param dev
  77 *   Pointer to VM context
  78 */
  79void
  80mlx5_vlan_vmwa_exit(void *vmctx)
  81{
  82        RTE_SET_USED(vmctx);
  83}
  84