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 9 struct ice_vsi; 10 11 void ice_vf_vsi_cfg_dvm_legacy_vlan_mode(struct ice_vsi *vsi); 12 void ice_vf_vsi_cfg_svm_legacy_vlan_mode(struct ice_vsi *vsi); 13 14 #ifdef CONFIG_PCI_IOV 15 void ice_vf_vsi_init_vlan_ops(struct ice_vsi *vsi); 16 void ice_vf_vsi_enable_port_vlan(struct ice_vsi *vsi); 17 void ice_vf_vsi_disable_port_vlan(struct ice_vsi *vsi); 18 #else ice_vf_vsi_init_vlan_ops(struct ice_vsi * vsi)19static inline void ice_vf_vsi_init_vlan_ops(struct ice_vsi *vsi) { } ice_vf_vsi_enable_port_vlan(struct ice_vsi * vsi)20static inline void ice_vf_vsi_enable_port_vlan(struct ice_vsi *vsi) { } ice_vf_vsi_disable_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