Loading...
1/* SPDX-License-Identifier: GPL-2.0-only */
2/****************************************************************************
3 * Driver for Solarflare network controllers and boards
4 * Copyright 2014-2015 Solarflare Communications Inc.
5 */
6
7#ifndef EFX_SRIOV_H
8#define EFX_SRIOV_H
9
10#include "net_driver.h"
11
12#ifdef CONFIG_SFC_SRIOV
13
14int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac);
15int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan,
16 u8 qos, __be16 vlan_proto);
17int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i,
18 bool spoofchk);
19int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i,
20 struct ifla_vf_info *ivi);
21int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i,
22 int link_state);
23#endif /* CONFIG_SFC_SRIOV */
24
25#endif /* EFX_SRIOV_H */
1/****************************************************************************
2 * Driver for Solarflare network controllers and boards
3 * Copyright 2014-2015 Solarflare Communications Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published
7 * by the Free Software Foundation, incorporated herein by reference.
8 */
9
10#ifndef EFX_SRIOV_H
11#define EFX_SRIOV_H
12
13#include "net_driver.h"
14
15#ifdef CONFIG_SFC_SRIOV
16
17int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac);
18int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan,
19 u8 qos, __be16 vlan_proto);
20int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i,
21 bool spoofchk);
22int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i,
23 struct ifla_vf_info *ivi);
24int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i,
25 int link_state);
26#endif /* CONFIG_SFC_SRIOV */
27
28#endif /* EFX_SRIOV_H */