1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright (C) 2019-2021, Intel Corporation. */
3
4#ifndef _ICE_VF_VSI_VLAN_OPS_H_
5#define _ICE_VF_VSI_VLAN_OPS_H_
6
7#include "ice_vsi_vlan_ops.h"
8
9struct ice_vsi;
10
11void ice_vf_vsi_cfg_dvm_legacy_vlan_mode(struct ice_vsi *vsi);
12void ice_vf_vsi_cfg_svm_legacy_vlan_mode(struct ice_vsi *vsi);
13
14#ifdef CONFIG_PCI_IOV
15void ice_vf_vsi_init_vlan_ops(struct ice_vsi *vsi);
16void ice_vf_vsi_enable_port_vlan(struct ice_vsi *vsi);
17void ice_vf_vsi_disable_port_vlan(struct ice_vsi *vsi);
18#else
19static inline void ice_vf_vsi_init_vlan_ops(struct ice_vsi *vsi) { }
20static inline void ice_vf_vsi_enable_port_vlan(struct ice_vsi *vsi) { }
21static inline void ice_vf_vsi_disable_port_vlan(struct ice_vsi *vsi) { }
22#endif /* CONFIG_PCI_IOV */
23#endif /* _ICE_PF_VSI_VLAN_OPS_H_ */
24

source code of linux/drivers/net/ethernet/intel/ice/ice_vf_vsi_vlan_ops.h