Home
last modified time | relevance | path

Searched refs:tci (Results 1 – 8 of 8) sorted by relevance

/net/sched/
Dact_vlan.c29 u16 tci; in tcf_vlan_act() local
62 tci = skb_vlan_tag_get(skb); in tcf_vlan_act()
66 err = __skb_vlan_pop(skb, &tci); in tcf_vlan_act()
71 tci = (tci & ~VLAN_VID_MASK) | p->tcfv_push_vid; in tcf_vlan_act()
74 tci &= ~VLAN_PRIO_MASK; in tcf_vlan_act()
75 tci |= p->tcfv_push_prio << VLAN_PRIO_SHIFT; in tcf_vlan_act()
78 __vlan_hwaccel_put_tag(skb, p->tcfv_push_proto, tci); in tcf_vlan_act()
/net/dsa/
Dtag_8021q.c576 u16 tpid, u16 tci) in dsa_8021q_xmit() argument
581 return vlan_insert_tag(skb, htons(tpid), tci); in dsa_8021q_xmit()
587 u16 vid, tci; in dsa_8021q_rcv() local
591 tci = skb_vlan_tag_get(skb); in dsa_8021q_rcv()
594 __skb_vlan_pop(skb, &tci); in dsa_8021q_rcv()
598 vid = tci & VLAN_VID_MASK; in dsa_8021q_rcv()
602 skb->priority = (tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT; in dsa_8021q_rcv()
/net/openvswitch/
Dflow.c322 key_vh->tci = vh->tci | htons(VLAN_CFI_MASK); in parse_vlan_tag()
327 u16 tci; in parse_vlan_tag() local
331 err = __skb_vlan_pop(skb, &tci); in parse_vlan_tag()
335 __vlan_hwaccel_put_tag(skb, key_vh->tpid, tci); in parse_vlan_tag()
344 key->eth.vlan.tci = 0; in clear_vlan()
346 key->eth.cvlan.tci = 0; in clear_vlan()
355 key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK); in parse_vlan()
808 if (key->eth.cvlan.tci & htons(VLAN_CFI_MASK)) in key_extract()
Dflow_netlink.c967 __be16 tci = 0; in encode_vlan_from_nlattrs() local
971 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in encode_vlan_from_nlattrs()
978 SW_FLOW_KEY_PUT(match, eth.vlan.tci, tci, is_mask); in encode_vlan_from_nlattrs()
981 SW_FLOW_KEY_PUT(match, eth.cvlan.tci, tci, is_mask); in encode_vlan_from_nlattrs()
990 __be16 tci = 0; in validate_vlan_from_nlattrs() local
1006 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in validate_vlan_from_nlattrs()
1008 if (!(tci & htons(VLAN_CFI_MASK))) { in validate_vlan_from_nlattrs()
1009 if (tci) { in validate_vlan_from_nlattrs()
1028 __be16 tci = 0; in validate_vlan_mask_from_nlattrs() local
1030 bool encap_valid = !!(match->key->eth.vlan.tci & in validate_vlan_mask_from_nlattrs()
[all …]
Dflow.h50 __be16 tci; /* 0 if no VLAN, VLAN_CFI_MASK set otherwise. */ member
Dactions.c224 key->eth.vlan.tci = 0; in pop_vlan()
236 key->eth.vlan.tci = vlan->vlan_tci; in push_vlan()
/net/core/
Ddev.c2423 struct xps_dev_maps *old_maps, int tci, u16 index) in remove_xps_queue() argument
2429 map = xmap_dereference(dev_maps->attr_map[tci]); in remove_xps_queue()
2443 RCU_INIT_POINTER(old_maps->attr_map[tci], NULL); in remove_xps_queue()
2444 RCU_INIT_POINTER(dev_maps->attr_map[tci], NULL); in remove_xps_queue()
2458 int tci; in remove_xps_queue_cpu() local
2460 for (tci = cpu * num_tc; num_tc--; tci++) { in remove_xps_queue_cpu()
2464 if (!remove_xps_queue(dev_maps, NULL, tci, j)) in remove_xps_queue_cpu()
2578 int i, tci = index * dev_maps->num_tc; in xps_copy_dev_maps() local
2582 for (i = 0; i < dev_maps->num_tc; i++, tci++) { in xps_copy_dev_maps()
2587 map = xmap_dereference(dev_maps->attr_map[tci]); in xps_copy_dev_maps()
[all …]
Dnet-sysfs.c1447 int i, tci = j * dev_maps->num_tc + tc; in xps_queue_show() local
1450 map = rcu_dereference(dev_maps->attr_map[tci]); in xps_queue_show()