Home
last modified time | relevance | path

Searched refs:tpid (Results 1 – 25 of 43) sorted by relevance

12

/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_vsi_vlan_lib.c9 static void print_invalid_tpid(struct ice_vsi *vsi, u16 tpid) in print_invalid_tpid() argument
12 ice_vsi_type_str(vsi->type), vsi->idx, tpid); in print_invalid_tpid()
26 if (vlan->tpid != ETH_P_8021Q && vlan->tpid != ETH_P_8021AD && in validate_vlan()
27 vlan->tpid != ETH_P_QINQ1 && (vlan->tpid || vlan->vid)) { in validate_vlan()
28 print_invalid_tpid(vsi, vlan->tpid); in validate_vlan()
175 int ice_vsi_ena_inner_stripping(struct ice_vsi *vsi, const u16 tpid) in ice_vsi_ena_inner_stripping() argument
177 if (tpid != ETH_P_8021Q) { in ice_vsi_ena_inner_stripping()
178 print_invalid_tpid(vsi, tpid); in ice_vsi_ena_inner_stripping()
190 int ice_vsi_ena_inner_insertion(struct ice_vsi *vsi, const u16 tpid) in ice_vsi_ena_inner_insertion() argument
192 if (tpid != ETH_P_8021Q) { in ice_vsi_ena_inner_insertion()
[all …]
Dice_vsi_vlan_lib.h15 int ice_vsi_ena_inner_stripping(struct ice_vsi *vsi, u16 tpid);
17 int ice_vsi_ena_inner_insertion(struct ice_vsi *vsi, u16 tpid);
26 int ice_vsi_ena_outer_stripping(struct ice_vsi *vsi, u16 tpid);
28 int ice_vsi_ena_outer_insertion(struct ice_vsi *vsi, u16 tpid);
Dice_vlan.h11 u16 tpid; member
16 #define ICE_VLAN(tpid, vid, prio) ((struct ice_vlan){ tpid, vid, prio }) argument
Dice_vsi_vlan_ops.h15 int (*ena_stripping)(struct ice_vsi *vsi, const u16 tpid);
17 int (*ena_insertion)(struct ice_vsi *vsi, const u16 tpid);
Dice_virtchnl.c2696 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()
[all …]
Dice_vsi_vlan_ops.c18 u16 __always_unused tpid) in op_unsupported_tpid_arg() argument
Dice_fltr.c256 info.l_data.vlan.tpid = vlan->tpid; in ice_fltr_add_vlan_to_list()
Dice_vf_lib.h160 return vf->port_vlan_info.tpid; in ice_vf_get_port_vlan_tpid()
/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dtest_skmsg_load_helpers.c32 __u32 pid, tpid; in prog_msg_verdict() local
40 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid); in prog_msg_verdict()
41 if (pid != tpid) in prog_msg_verdict()
Dtest_skb_helpers.c22 __u32 tpid; in test_skb_helpers() local
25 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid); in test_skb_helpers()
Dprofiler.inc.h359 get_var_kill_data(struct pt_regs* ctx, int spid, int tpid, int sig) in get_var_kill_data() argument
374 kill_data->kill_target_pid = tpid; in get_var_kill_data()
381 static INLINE int trace_var_sys_kill(void* ctx, int tpid, int sig) in trace_var_sys_kill() argument
387 struct var_kill_data_arr_t* arr_struct = bpf_map_lookup_elem(&var_tpid_to_data, &tpid); in trace_var_sys_kill()
390 struct var_kill_data_t* kill_data = get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill()
404 get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill()
414 bpf_map_update_elem(&var_tpid_to_data, &tpid, in trace_var_sys_kill()
435 get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill()
443 bpf_map_update_elem(&var_tpid_to_data, &tpid, arr_struct, 0); in trace_var_sys_kill()
623 u32 tpid = get_userspace_pid(); in raw_tracepoint__sched_process_exit() local
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/iavf/
Diavf_virtchnl.c646 if (f->vlan.tpid == ETH_P_8021Q) in iavf_vlan_add_reject()
778 vlan->tpid = f->vlan.tpid; in iavf_add_vlans()
916 vlan->tpid = f->vlan.tpid; in iavf_del_vlans()
1165 static u32 iavf_tpid_to_vc_ethertype(u16 tpid) in iavf_tpid_to_vc_ethertype() argument
1167 switch (tpid) { in iavf_tpid_to_vc_ethertype()
1186 struct virtchnl_vlan_setting *msg, u16 tpid, in iavf_set_vc_offload_ethertype() argument
1190 u16 vc_ethertype = iavf_tpid_to_vc_ethertype(tpid); in iavf_set_vc_offload_ethertype()
1219 offload_op, tpid); in iavf_set_vc_offload_ethertype()
1233 iavf_clear_offload_v2_aq_required(struct iavf_adapter *adapter, u16 tpid, in iavf_clear_offload_v2_aq_required() argument
1238 if (tpid == ETH_P_8021Q) in iavf_clear_offload_v2_aq_required()
[all …]
Diavf.h154 #define IAVF_VLAN(vid, tpid) ((struct iavf_vlan){ vid, tpid }) argument
157 u16 tpid; member
574 void iavf_enable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid);
575 void iavf_disable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid);
576 void iavf_enable_vlan_insertion_v2(struct iavf_adapter *adapter, u16 tpid);
577 void iavf_disable_vlan_insertion_v2(struct iavf_adapter *adapter, u16 tpid);
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/
Dnfp_net_dp.c447 u16 tpid = 0, tci = 0; in nfp_net_vlan_strip() local
450 tpid = ETH_P_8021Q; in nfp_net_vlan_strip()
453 if (meta->vlan.tpid == NFP_NET_VLAN_CTAG) in nfp_net_vlan_strip()
454 tpid = ETH_P_8021Q; in nfp_net_vlan_strip()
455 else if (meta->vlan.tpid == NFP_NET_VLAN_STAG) in nfp_net_vlan_strip()
456 tpid = ETH_P_8021AD; in nfp_net_vlan_strip()
462 if (tpid) in nfp_net_vlan_strip()
463 __vlan_hwaccel_put_tag(skb, htons(tpid), tci); in nfp_net_vlan_strip()
/Linux-v6.1/tools/thermal/tmon/
Dsysfs.c122 static int get_trip_point_data(char *tz_path, int tzid, int tpid) in get_trip_point_data() argument
128 if (tpid >= MAX_NR_TRIP) in get_trip_point_data()
131 snprintf(filename, sizeof(filename), "trip_point_%d_type", tpid); in get_trip_point_data()
138 ptdata.tzi[tzid].tp[tpid].type = trip_type; in get_trip_point_data()
140 tpid, temp_str, trip_type); in get_trip_point_data()
/Linux-v6.1/drivers/net/ethernet/mscc/
Docelot_flower.c205 enum ocelot_tag_tpid_sel tpid; in ocelot_flower_parse_egress_vlan_modify() local
209 tpid = OCELOT_TAG_TPID_SEL_8021Q; in ocelot_flower_parse_egress_vlan_modify()
212 tpid = OCELOT_TAG_TPID_SEL_8021AD; in ocelot_flower_parse_egress_vlan_modify()
220 filter->action.tag_a_tpid_sel = tpid; in ocelot_flower_parse_egress_vlan_modify()
239 enum ocelot_tag_tpid_sel tpid; in ocelot_flower_parse_action() local
470 tpid = OCELOT_TAG_TPID_SEL_8021Q; in ocelot_flower_parse_action()
473 tpid = OCELOT_TAG_TPID_SEL_8021AD; in ocelot_flower_parse_action()
480 filter->action.tag_a_tpid_sel = tpid; in ocelot_flower_parse_action()
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dnv50.c282 nv50_gr_mp_trap(struct nv50_gr *gr, int tpid, int display) in nv50_gr_mp_trap() argument
295 addr = 0x408200 + (tpid << 12) + (i << 7); in nv50_gr_mp_trap()
297 addr = 0x408100 + (tpid << 11) + (i << 7); in nv50_gr_mp_trap()
312 tpid, i, status, msg, pc & 0xffffff, in nv50_gr_mp_trap()
321 "No MPs claiming errors?\n", tpid); in nv50_gr_mp_trap()
/Linux-v6.1/net/openvswitch/
Dflow.c452 if (likely(!eth_type_vlan(vh->tpid))) in parse_vlan_tag()
464 key_vh->tpid = vh->tpid; in parse_vlan_tag()
476 __vlan_hwaccel_put_tag(skb, key_vh->tpid, tci); in parse_vlan_tag()
486 key->eth.vlan.tpid = 0; in clear_vlan()
488 key->eth.cvlan.tpid = 0; in clear_vlan()
497 key->eth.vlan.tpid = skb->vlan_proto; in parse_vlan()
950 skb->protocol = key->eth.cvlan.tpid; in key_extract()
Dflow.h62 __be16 tpid; /* Vlan type. Generally 802.1q or 802.1ad.*/ member
Dflow_netlink.c977 __be16 tpid = 0; in encode_vlan_from_nlattrs() local
983 tpid = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in encode_vlan_from_nlattrs()
986 SW_FLOW_KEY_PUT(match, eth.vlan.tpid, tpid, is_mask); in encode_vlan_from_nlattrs()
989 SW_FLOW_KEY_PUT(match, eth.cvlan.tpid, tpid, is_mask); in encode_vlan_from_nlattrs()
1038 __be16 tpid = 0; in validate_vlan_mask_from_nlattrs() local
1059 tpid = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in validate_vlan_mask_from_nlattrs()
1061 if (tpid != htons(0xffff)) { in validate_vlan_mask_from_nlattrs()
1063 (inner) ? "C-VLAN" : "VLAN", ntohs(tpid)); in validate_vlan_mask_from_nlattrs()
1972 __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); in ovs_nla_put_vlan()
/Linux-v6.1/include/linux/dsa/
D8021q.h42 u16 tpid, u16 tci);
/Linux-v6.1/net/dsa/
Dtag_sja1105.c496 u16 tpid = ntohs(eth_hdr(skb)->h_proto); in sja1105_skb_has_tag_8021q() local
498 return tpid == ETH_P_SJA1105 || tpid == ETH_P_8021Q || in sja1105_skb_has_tag_8021q()
Dtag_8021q.c436 u16 tpid, u16 tci) in dsa_8021q_xmit() argument
441 return vlan_insert_tag(skb, htons(tpid), tci); in dsa_8021q_xmit()
/Linux-v6.1/fs/proc/
Darray.c155 pid_t ppid, tpid = 0, tgid, ngid; in task_state() local
164 tpid = task_pid_nr_ns(tracer, ns); in task_state()
187 seq_put_decimal_ull(m, "\nTracerPid:\t", tpid); in task_state()
/Linux-v6.1/drivers/net/ethernet/qlogic/qed/
Dqed_sp_commands.c346 outer_tag_config->outer_tag.tpid = cpu_to_le16(ETH_P_8021Q); in qed_sp_pf_start()
348 outer_tag_config->outer_tag.tpid = cpu_to_le16(ETH_P_8021AD); in qed_sp_pf_start()

12