linux/drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c

// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
/* Copyright (c) 2021 Mellanox Technologies Ltd */

#include <linux/etherdevice.h>
#include <linux/mlx5/driver.h>
#include <linux/mlx5/mlx5_ifc.h>
#include <linux/mlx5/vport.h>
#include <linux/mlx5/fs.h>
#include "esw/acl/lgcy.h"
#include "esw/legacy.h"
#include "mlx5_core.h"
#include "eswitch.h"
#include "fs_core.h"
#include "fs_ft_pool.h"
#include "esw/qos.h"

enum {};

static int esw_create_legacy_vepa_table(struct mlx5_eswitch *esw)
{}

static void esw_destroy_legacy_fdb_table(struct mlx5_eswitch *esw)
{}

static int esw_create_legacy_fdb_table(struct mlx5_eswitch *esw)
{}

static void esw_destroy_legacy_vepa_table(struct mlx5_eswitch *esw)
{}

static int esw_create_legacy_table(struct mlx5_eswitch *esw)
{}

static void esw_cleanup_vepa_rules(struct mlx5_eswitch *esw)
{}

static void esw_destroy_legacy_table(struct mlx5_eswitch *esw)
{}

#define MLX5_LEGACY_SRIOV_VPORT_EVENTS

int esw_legacy_enable(struct mlx5_eswitch *esw)
{}

void esw_legacy_disable(struct mlx5_eswitch *esw)
{}

static int _mlx5_eswitch_set_vepa_locked(struct mlx5_eswitch *esw,
					 u8 setting)
{}

int mlx5_eswitch_set_vepa(struct mlx5_eswitch *esw, u8 setting)
{}

int mlx5_eswitch_get_vepa(struct mlx5_eswitch *esw, u8 *setting)
{}

int esw_legacy_vport_acl_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
{}

void esw_legacy_vport_acl_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
{}

int mlx5_esw_query_vport_drop_stats(struct mlx5_core_dev *dev,
				    struct mlx5_vport *vport,
				    struct mlx5_vport_drop_stats *stats)
{}

int mlx5_eswitch_set_vport_vlan(struct mlx5_eswitch *esw,
				u16 vport, u16 vlan, u8 qos)
{}

int mlx5_eswitch_set_vport_spoofchk(struct mlx5_eswitch *esw,
				    u16 vport, bool spoofchk)
{}

int mlx5_eswitch_set_vport_trust(struct mlx5_eswitch *esw,
				 u16 vport, bool setting)
{}

int mlx5_eswitch_set_vport_rate(struct mlx5_eswitch *esw, u16 vport,
				u32 max_rate, u32 min_rate)
{}