Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/usb/
Dcdc_mbim.c225 u16 tci = 0; in cdc_mbim_tx_fixup() local
243 if (vlan_get_tag(skb, &tci) < 0 && skb->len > VLAN_ETH_HLEN && in cdc_mbim_tx_fixup()
244 __vlan_get_tag(skb, &tci) == 0) { in cdc_mbim_tx_fixup()
255 if (!tci) in cdc_mbim_tx_fixup()
258 if (tci == MBIM_IPS0_VID) in cdc_mbim_tx_fixup()
259 tci = 0; in cdc_mbim_tx_fixup()
270 switch (tci & 0x0f00) { in cdc_mbim_tx_fixup()
275 c[3] = tci; in cdc_mbim_tx_fixup()
282 c[3] = tci; in cdc_mbim_tx_fixup()
286 "unsupported tci=0x%04x\n", tci); in cdc_mbim_tx_fixup()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/dsa/
Dtag_sja1105.c285 u16 tpid, vid, tci; in sja1105_rcv() local
304 tci = skb_vlan_tag_get(skb); in sja1105_rcv()
307 __skb_vlan_pop(skb, &tci); in sja1105_rcv()
313 vid = tci & VLAN_VID_MASK; in sja1105_rcv()
316 skb->priority = (tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT; in sja1105_rcv()
Dtag_8021q.c454 u16 tpid, u16 tci) in dsa_8021q_xmit() argument
459 return vlan_insert_tag(skb, htons(tpid), tci); in dsa_8021q_xmit()
/kernel/linux/linux-5.10/include/net/
Derspan.h179 __be16 tci; in erspan_build_header() member
196 vlan_tci = ntohs(qp->tci); in erspan_build_header()
273 __be16 tci; in erspan_build_header_v2() member
290 vlan_tci = ntohs(qp->tci); in erspan_build_header_v2()
/kernel/linux/linux-5.10/include/linux/dsa/
D8021q.h53 u16 tpid, u16 tci);
91 u16 tpid, u16 tci) in dsa_8021q_xmit() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/macsec/
Dmacsec_struct.h61 u32 tci; member
253 u32 tci; member
360 u32 tci; member
Dmacsec_api.c368 packed_record[4] = rec->tci & 0xFF; in set_ingress_preclass_record()
482 rec->tci = packed_record[4] & 0xFF; in get_ingress_preclass_record()
1262 packed_record[3] = rec->tci & 0xFF; in set_egress_class_record()
1413 rec->tci = packed_record[3] & 0xFF; in get_egress_class_record()
1546 packed_record[4] |= (rec->tci & 0x3F) << 3; in set_egress_sc_record()
1597 rec->tci = (packed_record[4] >> 3) & 0x3F; in get_egress_sc_record()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c37 ext->tci = cpu_to_be16(tmp_tci); in nfp_flower_compile_meta_tci()
44 msk->tci = cpu_to_be16(tmp_tci); in nfp_flower_compile_meta_tci()
238 u16 tci; in nfp_flower_fill_vlan() local
240 tci = NFP_FLOWER_MASK_VLAN_PRESENT; in nfp_flower_fill_vlan()
241 tci |= FIELD_PREP(NFP_FLOWER_MASK_VLAN_PRIO, in nfp_flower_fill_vlan()
247 frame->outer_tci = cpu_to_be16(tci); in nfp_flower_fill_vlan()
250 frame->inner_tci = cpu_to_be16(tci); in nfp_flower_fill_vlan()
Doffload.c79 __be16 tci; member
618 merge->tci = cpu_to_be16(0xffff); in nfp_flower_update_merge_with_actions()
621 merge->tci = cpu_to_be16(0); in nfp_flower_update_merge_with_actions()
719 merge->tci = meta_tci->tci; in nfp_flower_populate_merge_match()
1149 if (meta_tci->tci & cpu_to_be16(NFP_FLOWER_MASK_VLAN_PRESENT)) { in nfp_flower_validate_pre_tun_rule()
1150 u16 vlan_tci = be16_to_cpu(meta_tci->tci); in nfp_flower_validate_pre_tun_rule()
/kernel/linux/linux-5.10/net/openvswitch/
Dflow.c317 key_vh->tci = vh->tci | htons(VLAN_CFI_MASK); in parse_vlan_tag()
322 u16 tci; in parse_vlan_tag() local
326 err = __skb_vlan_pop(skb, &tci); in parse_vlan_tag()
330 __vlan_hwaccel_put_tag(skb, key_vh->tpid, tci); in parse_vlan_tag()
339 key->eth.vlan.tci = 0; in clear_vlan()
341 key->eth.cvlan.tci = 0; in clear_vlan()
350 key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK); in parse_vlan()
802 if (key->eth.cvlan.tci & htons(VLAN_CFI_MASK)) in key_extract()
Dflow_netlink.c966 __be16 tci = 0; in encode_vlan_from_nlattrs() local
970 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in encode_vlan_from_nlattrs()
977 SW_FLOW_KEY_PUT(match, eth.vlan.tci, tci, is_mask); in encode_vlan_from_nlattrs()
980 SW_FLOW_KEY_PUT(match, eth.cvlan.tci, tci, is_mask); in encode_vlan_from_nlattrs()
989 __be16 tci = 0; in validate_vlan_from_nlattrs() local
1005 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in validate_vlan_from_nlattrs()
1007 if (!(tci & htons(VLAN_CFI_MASK))) { in validate_vlan_from_nlattrs()
1008 if (tci) { in validate_vlan_from_nlattrs()
1027 __be16 tci = 0; in validate_vlan_mask_from_nlattrs() local
1029 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
/kernel/linux/linux-5.10/drivers/net/vmxnet3/
Dvmxnet3_defs.h141 u32 tci:16; /* Tag to Insert */ member
155 u32 tci:16; /* Tag to Insert */ member
256 u32 tci:16; /* Tag stripped */ member
264 u32 tci:16; /* Tag stripped */ member
/kernel/linux/linux-5.10/drivers/scsi/isci/
Dhost.h350 #define ISCI_TAG(seq, tci) (((u16) (seq)) << 12 | tci) argument
477 void isci_tci_free(struct isci_host *ihost, u16 tci);
Dhost.c2551 void isci_tci_free(struct isci_host *ihost, u16 tci) in isci_tci_free() argument
2555 ihost->tci_pool[tail] = tci; in isci_tci_free()
2562 u16 tci = ihost->tci_pool[head]; in isci_tci_alloc() local
2565 return tci; in isci_tci_alloc()
2576 u16 tci = isci_tci_alloc(ihost); in isci_alloc_tag() local
2577 u8 seq = ihost->io_request_sequence[tci]; in isci_alloc_tag()
2579 return ISCI_TAG(seq, tci); in isci_alloc_tag()
2587 u16 tci = ISCI_TAG_TCI(io_tag); in isci_free_tag() local
2594 if (seq == ihost->io_request_sequence[tci]) { in isci_free_tag()
2595 ihost->io_request_sequence[tci] = (seq+1) & (SCI_MAX_SEQ-1); in isci_free_tag()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dsiena_sriov.c325 vlan = ntohs(vf->addr.tci) & VLAN_VID_MASK; in efx_siena_sriov_reset_tx_filter()
363 vlan = ntohs(vf->addr.tci) & VLAN_VID_MASK; in efx_siena_sriov_reset_rx_filter()
1120 peer->tci = 0; in efx_siena_sriov_peer_work()
1616 u16 tci; in efx_siena_sriov_set_vf_vlan() local
1623 tci = (vlan & VLAN_VID_MASK) | ((qos & 0x7) << VLAN_PRIO_SHIFT); in efx_siena_sriov_set_vf_vlan()
1624 vf->addr.tci = htons(tci); in efx_siena_sriov_set_vf_vlan()
1660 u16 tci; in efx_siena_sriov_get_vf_config() local
1670 tci = ntohs(vf->addr.tci); in efx_siena_sriov_get_vf_config()
1671 ivi->vlan = tci & VLAN_VID_MASK; in efx_siena_sriov_get_vf_config()
1672 ivi->qos = (tci >> VLAN_PRIO_SHIFT) & 0x7; in efx_siena_sriov_get_vf_config()
Dvfdi.h87 __be16 tci; member
/kernel/linux/linux-5.10/net/core/
Ddev.c2451 int tci, u16 index) in remove_xps_queue() argument
2457 map = xmap_dereference(dev_maps->attr_map[tci]); in remove_xps_queue()
2470 RCU_INIT_POINTER(dev_maps->attr_map[tci], NULL); in remove_xps_queue()
2484 int tci; in remove_xps_queue_cpu() local
2486 for (tci = cpu * num_tc; num_tc--; tci++) { in remove_xps_queue_cpu()
2490 if (!remove_xps_queue(dev_maps, tci, j)) in remove_xps_queue_cpu()
2625 int i, j, tci, numa_node_id = -2; in __netif_set_xps_queue() local
2675 tci = j * num_tc + tc; in __netif_set_xps_queue()
2676 map = dev_maps ? xmap_dereference(dev_maps->attr_map[tci]) : in __netif_set_xps_queue()
2683 RCU_INIT_POINTER(new_dev_maps->attr_map[tci], map); in __netif_set_xps_queue()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_rxtx.c253 u16 tci = dsa.vlan.vid & VLAN_VID_MASK; in prestera_rxtx_process_skb() local
255 tci |= dsa.vlan.vpt << VLAN_PRIO_SHIFT; in prestera_rxtx_process_skb()
257 tci |= VLAN_CFI_MASK; in prestera_rxtx_process_skb()
259 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), tci); in prestera_rxtx_process_skb()
/kernel/linux/linux-5.10/include/soc/fsl/qe/
Ducc_slow.h170 int tci; member
Ducc_fast.h157 int tci; member
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_sp_commands.c341 outer_tag_config->outer_tag.tci = cpu_to_le16(p_hwfn->hw_info.ovlan); in qed_sp_pf_start()
363 outer_tag_config->outer_tag.tci |= in qed_sp_pf_start()
411 sb, sb_index, outer_tag_config->outer_tag.tci); in qed_sp_pf_start()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c3798 struct virtchnl_tc_info *tci = in i40e_vc_add_qch_msg() local
3828 if (!tci->num_tc || tci->num_tc > I40E_MAX_VF_VSI) { in i40e_vc_add_qch_msg()
3831 vf->vf_id, tci->num_tc, I40E_MAX_VF_VSI); in i40e_vc_add_qch_msg()
3837 for (i = 0; i < tci->num_tc; i++) in i40e_vc_add_qch_msg()
3838 if (!tci->list[i].count || in i40e_vc_add_qch_msg()
3839 tci->list[i].count > I40E_DEFAULT_QUEUES_PER_VF) { in i40e_vc_add_qch_msg()
3842 vf->vf_id, i, tci->list[i].count, in i40e_vc_add_qch_msg()
3893 vf->num_tc = tci->num_tc; in i40e_vc_add_qch_msg()
3895 if (tci->list[i].max_tx_rate) { in i40e_vc_add_qch_msg()
3896 if (tci->list[i].max_tx_rate > speed) { in i40e_vc_add_qch_msg()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c351 sc_rec.tci |= BIT(1); in aq_set_txsc()
353 sc_rec.tci |= BIT(2); in aq_set_txsc()
355 sc_rec.tci |= BIT(3); in aq_set_txsc()
357 sc_rec.tci |= BIT(4); in aq_set_txsc()
362 sc_rec.tci |= BIT(0); in aq_set_txsc()

12