Lines Matching refs:tci
964 __be16 tci = 0; in encode_vlan_from_nlattrs() local
968 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in encode_vlan_from_nlattrs()
975 SW_FLOW_KEY_PUT(match, eth.vlan.tci, tci, is_mask); in encode_vlan_from_nlattrs()
978 SW_FLOW_KEY_PUT(match, eth.cvlan.tci, tci, is_mask); in encode_vlan_from_nlattrs()
987 __be16 tci = 0; in validate_vlan_from_nlattrs() local
1003 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in validate_vlan_from_nlattrs()
1005 if (!(tci & htons(VLAN_CFI_MASK))) { in validate_vlan_from_nlattrs()
1006 if (tci) { in validate_vlan_from_nlattrs()
1025 __be16 tci = 0; in validate_vlan_mask_from_nlattrs() local
1027 bool encap_valid = !!(match->key->eth.vlan.tci & in validate_vlan_mask_from_nlattrs()
1029 bool i_encap_valid = !!(match->key->eth.cvlan.tci & in validate_vlan_mask_from_nlattrs()
1044 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in validate_vlan_mask_from_nlattrs()
1054 if (!(tci & htons(VLAN_CFI_MASK))) { in validate_vlan_mask_from_nlattrs()
1110 encap_valid = !!(match->key->eth.vlan.tci & htons(VLAN_CFI_MASK)); in parse_vlan_from_nlattrs()
1816 SW_FLOW_KEY_PUT(match, eth.vlan.tci, htons(0xffff), true); in ovs_nla_get_match()
1817 SW_FLOW_KEY_PUT(match, eth.cvlan.tci, htons(0xffff), true); in ovs_nla_get_match()
1937 nla_put_be16(skb, OVS_KEY_ATTR_VLAN, vh->tci)) in ovs_nla_put_vlan()
2027 if (swkey->eth.vlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2031 if (!swkey->eth.vlan.tci) in __ovs_nla_put_key()
2034 if (swkey->eth.cvlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2039 if (!swkey->eth.cvlan.tci) in __ovs_nla_put_key()
3229 key->eth.vlan.tci, log); in ovs_nla_copy_actions()