1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2023, Intel Corporation. */ 3 4 #include "ice_vsi_vlan_ops.h" 5 #include "ice_vsi_vlan_lib.h" 6 #include "ice_vlan_mode.h" 7 #include "ice.h" 8 #include "ice_sf_vsi_vlan_ops.h" 9 ice_sf_vsi_init_vlan_ops(struct ice_vsi * vsi)10void ice_sf_vsi_init_vlan_ops(struct ice_vsi *vsi) 11 { 12 struct ice_vsi_vlan_ops *vlan_ops; 13 14 if (ice_is_dvm_ena(&vsi->back->hw)) 15 vlan_ops = &vsi->outer_vlan_ops; 16 else 17 vlan_ops = &vsi->inner_vlan_ops; 18 19 vlan_ops->add_vlan = ice_vsi_add_vlan; 20 vlan_ops->del_vlan = ice_vsi_del_vlan; 21 } 22