Lines Matching refs:tpid
2696 static bool ice_vc_validate_vlan_tpid(u16 filtering_caps, u16 tpid) in ice_vc_validate_vlan_tpid() argument
2700 switch (tpid) { in ice_vc_validate_vlan_tpid()
2727 if (!vc_vlan->tci || !vc_vlan->tpid) in ice_vc_is_valid_vlan()
2777 outer->tpid)) || in ice_vc_validate_vlan_filter_list()
2780 inner->tpid))) in ice_vc_validate_vlan_filter_list()
2797 vlan.tpid = vc_vlan->tpid; in ice_vc_to_vlan()
3131 static int ice_vc_get_tpid(u32 ethertype_setting, u16 *tpid) in ice_vc_get_tpid() argument
3135 *tpid = ETH_P_8021Q; in ice_vc_get_tpid()
3138 *tpid = ETH_P_8021AD; in ice_vc_get_tpid()
3141 *tpid = ETH_P_QINQ1; in ice_vc_get_tpid()
3144 *tpid = 0; in ice_vc_get_tpid()
3159 int (*ena_offload)(struct ice_vsi *vsi, u16 tpid), in ice_vc_ena_vlan_offload() argument
3162 u16 tpid; in ice_vc_ena_vlan_offload() local
3165 err = ice_vc_get_tpid(ethertype_setting, &tpid); in ice_vc_ena_vlan_offload()
3169 err = ena_offload(vsi, tpid); in ice_vc_ena_vlan_offload()