linux/drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c

// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright (C) 2017-2019 Netronome Systems, Inc. */

#include <linux/bitfield.h>
#include <linux/errno.h>
#include <linux/etherdevice.h>
#include <linux/if_link.h>
#include <linux/if_ether.h>

#include "nfpcore/nfp_cpp.h"
#include "nfp_app.h"
#include "nfp_main.h"
#include "nfp_net_ctrl.h"
#include "nfp_net.h"
#include "nfp_net_sriov.h"

static int
nfp_net_sriov_check(struct nfp_app *app, int vf, u16 cap, const char *msg, bool warn)
{}

static int
nfp_net_sriov_update(struct nfp_app *app, int vf, u16 update, const char *msg)
{}

int nfp_app_set_vf_mac(struct net_device *netdev, int vf, u8 *mac)
{}

int nfp_app_set_vf_vlan(struct net_device *netdev, int vf, u16 vlan, u8 qos,
			__be16 vlan_proto)
{}

int nfp_app_set_vf_rate(struct net_device *netdev, int vf,
			int min_tx_rate, int max_tx_rate)
{}

int nfp_app_set_vf_spoofchk(struct net_device *netdev, int vf, bool enable)
{}

int nfp_app_set_vf_trust(struct net_device *netdev, int vf, bool enable)
{}

int nfp_app_set_vf_link_state(struct net_device *netdev, int vf,
			      int link_state)
{}

int nfp_app_get_vf_config(struct net_device *netdev, int vf,
			  struct ifla_vf_info *ivi)
{}