Home
last modified time | relevance | path

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

12

/linux/drivers/net/usb/
H A Dcdc_mbim.c186 /* no need to put the VLAN tci in the packet headers */ in cdc_mbim_bind()
226 u16 tci = 0; in cdc_mbim_tx_fixup() local
244 if (vlan_get_tag(skb, &tci) < 0 && skb->len > VLAN_ETH_HLEN && in cdc_mbim_tx_fixup()
245 __vlan_get_tag(skb, &tci) == 0) { in cdc_mbim_tx_fixup()
256 if (!tci) in cdc_mbim_tx_fixup()
259 if (tci == MBIM_IPS0_VID) in cdc_mbim_tx_fixup()
260 tci = 0; in cdc_mbim_tx_fixup()
271 switch (tci & 0x0f00) { in cdc_mbim_tx_fixup()
276 c[3] = tci; in cdc_mbim_tx_fixup()
283 c[3] = tci; in cdc_mbim_tx_fixup()
309 do_neigh_solicit(struct usbnet * dev,u8 * buf,u16 tci) do_neigh_solicit() argument
366 cdc_mbim_process_dgram(struct usbnet * dev,u8 * buf,size_t len,u16 tci) cdc_mbim_process_dgram() argument
427 u16 tci; cdc_mbim_rx_fixup() local
[all...]
/linux/include/linux/dsa/
H A Docelot.h300 u16 proto, tci; in ocelot_xmit_get_vlan_info() local
312 vlan_remove_tag(skb, &tci); in ocelot_xmit_get_vlan_info()
313 *vlan_tci = tci; in ocelot_xmit_get_vlan_info()
316 br_vlan_get_pvid_rcu(br, &tci); in ocelot_xmit_get_vlan_info()
318 *vlan_tci = tci; in ocelot_xmit_get_vlan_info()
/linux/net/sched/
H A Dact_vlan.c29 u16 tci; in tcf_vlan_act() local
60 tci = skb_vlan_tag_get(skb); in tcf_vlan_act()
64 err = __skb_vlan_pop(skb, &tci); in tcf_vlan_act()
69 tci = (tci & ~VLAN_VID_MASK) | p->tcfv_push_vid; in tcf_vlan_act()
72 tci &= ~VLAN_PRIO_MASK; in tcf_vlan_act()
73 tci |= p->tcfv_push_prio << VLAN_PRIO_SHIFT; in tcf_vlan_act()
76 __vlan_hwaccel_put_tag(skb, p->tcfv_push_proto, tci); in tcf_vlan_act()
/linux/net/dsa/
H A Dtag_8021q.c465 u16 tpid, u16 tci) in dsa_8021q_xmit() argument
470 return vlan_insert_tag(skb, htons(tpid), tci); in dsa_8021q_xmit()
537 u16 tmp_vid, tci; in dsa_8021q_rcv() local
541 tci = skb_vlan_tag_get(skb); in dsa_8021q_rcv()
548 __skb_vlan_pop(skb, &tci); in dsa_8021q_rcv()
552 tmp_vid = tci & VLAN_VID_MASK; in dsa_8021q_rcv()
560 __vlan_hwaccel_put_tag(skb, vlan_proto, tci); in dsa_8021q_rcv()
585 skb->priority = (tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT; in dsa_8021q_rcv()
H A Dtag_8021q.h14 u16 tpid, u16 tci);
/linux/include/net/
H A Derspan.h182 __be16 tci; in erspan_build_header() member
199 vlan_tci = ntohs(qp->tci); in erspan_build_header()
276 __be16 tci; in erspan_build_header_v2() member
293 vlan_tci = ntohs(qp->tci); in erspan_build_header_v2()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_dp.c445 u16 tpid = 0, tci = 0; in nfp_net_vlan_strip() local
449 tci = le16_to_cpu(rxd->rxd.vlan); in nfp_net_vlan_strip()
458 tci = meta->vlan.tci; in nfp_net_vlan_strip()
461 __vlan_hwaccel_put_tag(skb, htons(tpid), tci); in nfp_net_vlan_strip()
/linux/drivers/net/ethernet/aquantia/atlantic/macsec/
H A Dmacsec_struct.h61 u32 tci; member
253 u32 tci; member
360 u32 tci; member
H A 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()
/linux/net/openvswitch/
H A Dflow.c479 key_vh->tci = vh->tci | htons(VLAN_CFI_MASK); in parse_vlan_tag()
484 u16 tci; in clear_vlan()
488 err = __skb_vlan_pop(skb, &tci); in clear_vlan()
492 __vlan_hwaccel_put_tag(skb, key_vh->tpid, tci); in parse_vlan()
501 key->eth.vlan.tci = 0; in parse_vlan()
503 key->eth.cvlan.tci = 0; in parse_vlan()
512 key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK); in parse_ethertype()
969 if (key->eth.cvlan.tci & htons(VLAN_CFI_MASK))
467 u16 tci; parse_vlan_tag() local
H A Dflow_netlink.c990 __be16 tci = 0; in encode_vlan_from_nlattrs()
994 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in encode_vlan_from_nlattrs()
1001 SW_FLOW_KEY_PUT(match, eth.vlan.tci, tci, is_mask); in encode_vlan_from_nlattrs()
1004 SW_FLOW_KEY_PUT(match, eth.cvlan.tci, tci, is_mask); in encode_vlan_from_nlattrs()
1013 __be16 tci = 0; in validate_vlan_from_nlattrs()
1029 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in validate_vlan_from_nlattrs()
1031 if (!(tci & htons(VLAN_CFI_MASK))) { in validate_vlan_from_nlattrs()
1032 if (tci) { in validate_vlan_from_nlattrs()
992 __be16 tci = 0; encode_vlan_from_nlattrs() local
1015 __be16 tci = 0; validate_vlan_from_nlattrs() local
1053 __be16 tci = 0; validate_vlan_mask_from_nlattrs() local
[all...]
H A Dflow.h63 __be16 tci; /* 0 if no VLAN, VLAN_CFI_MASK set otherwise. */ member
/linux/drivers/scsi/isci/
H A Dhost.h350 #define ISCI_TAG(seq, tci) (((u16) (seq)) << 12 | tci) argument
477 void isci_tci_free(struct isci_host *ihost, u16 tci);
/linux/tools/testing/selftests/net/openvswitch/
H A Dovs-dpctl.py658 tci = datum["vlan_tci"]
659 vid = tci & 0x0FFF
660 pcp = (tci >> 13) & 0x7
796 tci = (vid & 0x0FFF) | ((pcp & 0x7) << 13) \
800 pvact["vlan_tci"] = tci
1747 def _vlan_dpstr(tci): argument
1755 vid = tci & 0x0FFF
1756 pcp = (tci >> 13) & 0x7
1757 cfi = (tci >> 12) & 0x1
1760 return "tci=0x%04x" % tci
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dsiena_sriov.c326 vlan = ntohs(vf->addr.tci) & VLAN_VID_MASK; in efx_siena_sriov_reset_tx_filter()
364 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()
1615 u16 tci; in efx_siena_sriov_set_vf_vlan()
1622 tci = (vlan & VLAN_VID_MASK) | ((qos & 0x7) << VLAN_PRIO_SHIFT); in efx_siena_sriov_set_vf_vlan()
1623 vf->addr.tci = htons(tci); in efx_siena_sriov_set_vf_vlan()
1659 u16 tci; in efx_siena_sriov_get_vf_config()
1669 tci = ntohs(vf->addr.tci); in efx_siena_sriov_get_vf_config()
1616 u16 tci; efx_siena_sriov_set_vf_vlan() local
1660 u16 tci; efx_siena_sriov_get_vf_config() local
[all...]
H A Dvfdi.h87 __be16 tci; member
/linux/drivers/net/vmxnet3/
H A Dvmxnet3_defs.h170 u32 tci:16; /* Tag to Insert */ member
184 u32 tci:16; /* Tag to Insert */ member
305 u32 tci:16; /* Tag stripped */ member
313 u32 tci:16; /* Tag stripped */ member
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_rxtx.c252 u16 tci = dsa.vlan.vid & VLAN_VID_MASK; in prestera_rxtx_process_skb() local
254 tci |= dsa.vlan.vpt << VLAN_PRIO_SHIFT; in prestera_rxtx_process_skb()
256 tci |= VLAN_CFI_MASK; in prestera_rxtx_process_skb()
258 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), tci); in prestera_rxtx_process_skb()
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_sp_commands.c343 outer_tag_config->outer_tag.tci = cpu_to_le16(p_hwfn->hw_info.ovlan); in qed_sp_pf_start()
365 outer_tag_config->outer_tag.tci |= in qed_sp_pf_start()
418 sb, sb_index, outer_tag_config->outer_tag.tci); in qed_sp_pf_start()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Doffload.c82 __be16 tci; member
620 merge->tci = cpu_to_be16(0xffff); in nfp_flower_update_merge_with_actions()
623 merge->tci = cpu_to_be16(0); in nfp_flower_update_merge_with_actions()
721 merge->tci = meta_tci->tci; in nfp_flower_populate_merge_match()
1145 if (meta_tci->tci & cpu_to_be16(NFP_FLOWER_MASK_VLAN_PRESENT)) { in nfp_flower_validate_pre_tun_rule()
1146 u16 vlan_tci = be16_to_cpu(meta_tci->tci); in nfp_flower_validate_pre_tun_rule()
/linux/include/soc/fsl/qe/
H A Ducc_fast.h156 int tci; member
H A Ducc_slow.h170 int tci; member
/linux/net/core/
H A Ddev.c2759 struct xps_dev_maps *old_maps, int tci, u16 index) in remove_xps_queue_cpu()
2764 map = xmap_dereference(dev_maps->attr_map[tci]); in reset_xps_maps()
2778 RCU_INIT_POINTER(old_maps->attr_map[tci], NULL); in clean_xps_maps()
2779 RCU_INIT_POINTER(dev_maps->attr_map[tci], NULL); in clean_xps_maps()
2793 int tci; in clean_xps_maps()
2795 for (tci = cpu * num_tc; num_tc--; tci++) { in clean_xps_maps()
2799 if (!remove_xps_queue(dev_maps, NULL, tci, j)) in netif_reset_xps_queues()
2913 int i, tci = index * dev_maps->num_tc; in __netif_set_xps_queue()
2917 for (i = 0; i < dev_maps->num_tc; i++, tci in __netif_set_xps_queue()
2711 remove_xps_queue(struct xps_dev_maps * dev_maps,struct xps_dev_maps * old_maps,int tci,u16 index) remove_xps_queue() argument
2745 int tci; remove_xps_queue_cpu() local
2865 int i, tci = index * dev_maps->num_tc; xps_copy_dev_maps() local
2887 int i, j, tci, numa_node_id = -2; __netif_set_xps_queue() local
4671 __get_xps_queue_idx(struct net_device * dev,struct sk_buff * skb,struct xps_dev_maps * dev_maps,unsigned int tci) __get_xps_queue_idx() argument
4714 int tci = sk_rx_queue_get(sk); get_xps_queue() local
4725 unsigned int tci = skb->sender_cpu - 1; get_xps_queue() local
[all...]
/linux/drivers/net/dsa/mxl862xx/
H A Dmxl862xx.c1469 param.tci = cpu_to_le16(FIELD_PREP(MXL862XX_TCI_VLAN_ID, vid)); in mxl862xx_port_fdb_add()
1490 param.tci = cpu_to_le16(FIELD_PREP(MXL862XX_TCI_VLAN_ID, vid)); in mxl862xx_port_fdb_del()
1520 le16_to_cpu(param.tci)), in mxl862xx_port_fdb_dump()
1547 qparam.tci = cpu_to_le16(FIELD_PREP(MXL862XX_TCI_VLAN_ID, mdb->vid)); in mxl862xx_port_mdb_add()
1556 aparam.tci = cpu_to_le16(FIELD_PREP(MXL862XX_TCI_VLAN_ID, mdb->vid)); in mxl862xx_port_mdb_add()
1583 qparam.tci = cpu_to_le16(FIELD_PREP(MXL862XX_TCI_VLAN_ID, mdb->vid)); in mxl862xx_port_mdb_del()
1597 rparam.tci = cpu_to_le16(FIELD_PREP(MXL862XX_TCI_VLAN_ID, mdb->vid)); in mxl862xx_port_mdb_del()
1603 aparam.tci = cpu_to_le16(FIELD_PREP(MXL862XX_TCI_VLAN_ID, mdb->vid)); in mxl862xx_port_mdb_del()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_virtchnl_pf.c4038 struct virtchnl_tc_info *tci =
4068 if (!tci->num_tc || tci->num_tc > I40E_MAX_VF_VSI) { in i40e_vc_add_qch_msg()
4071 vf->vf_id, tci->num_tc, I40E_MAX_VF_VSI); in i40e_vc_add_qch_msg()
4077 for (i = 0; i < tci->num_tc; i++) in i40e_vc_add_qch_msg()
4078 if (!tci->list[i].count || in i40e_vc_add_qch_msg()
4079 tci->list[i].count > I40E_DEFAULT_QUEUES_PER_VF) { in i40e_vc_add_qch_msg()
4082 vf->vf_id, i, tci->list[i].count, in i40e_vc_add_qch_msg()
4115 vf->num_tc = tci->num_tc; in i40e_vc_add_qch_msg()
4117 if (tci in i40e_vc_add_qch_msg()
4041 struct virtchnl_tc_info *tci = i40e_vc_add_qch_msg() local
[all...]

12