/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice_vsi_vlan_lib.c | 9 static void print_invalid_tpid(struct ice_vsi *vsi, u16 tpid) in print_invalid_tpid() argument 11 dev_err(ice_pf_to_dev(vsi->back), "%s %d specified invalid VLAN tpid 0x%04x\n", in print_invalid_tpid() 12 ice_vsi_type_str(vsi->type), vsi->idx, tpid); in print_invalid_tpid() local 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() 181 int ice_vsi_ena_inner_stripping(struct ice_vsi *vsi, const u16 tpid) in ice_vsi_ena_inner_stripping() argument 183 if (tpid ! in ice_vsi_ena_inner_stripping() 196 ice_vsi_ena_inner_insertion(struct ice_vsi *vsi, const u16 tpid) ice_vsi_ena_inner_insertion() argument 425 tpid_to_vsi_outer_vlan_type(u16 tpid, u8 *tag_type) tpid_to_vsi_outer_vlan_type() argument 464 ice_vsi_ena_outer_stripping(struct ice_vsi *vsi, u16 tpid) ice_vsi_ena_outer_stripping() argument 572 ice_vsi_ena_outer_insertion(struct ice_vsi *vsi, u16 tpid) ice_vsi_ena_outer_insertion() argument 688 __ice_vsi_set_outer_port_vlan(struct ice_vsi *vsi, u16 vlan_info, u16 tpid) __ice_vsi_set_outer_port_vlan() argument [all...] |
H A D | ice_vsi_vlan_lib.h | 21 int ice_vsi_ena_inner_stripping(struct ice_vsi *vsi, u16 tpid); 23 int ice_vsi_ena_inner_insertion(struct ice_vsi *vsi, u16 tpid); 33 int ice_vsi_ena_outer_stripping(struct ice_vsi *vsi, u16 tpid); 35 int ice_vsi_ena_outer_insertion(struct ice_vsi *vsi, u16 tpid);
|
H A D | ice_vlan.h | 11 u16 tpid; member 16 #define ICE_VLAN(tpid, vid, prio) ((struct ice_vlan){ tpid, vid, prio })
|
H A D | ice_vsi_vlan_ops.h | 15 int (*ena_stripping)(struct ice_vsi *vsi, const u16 tpid); 17 int (*ena_insertion)(struct ice_vsi *vsi, const u16 tpid);
|
H A D | ice_vsi_vlan_ops.c | 18 u16 __always_unused tpid) in op_unsupported_tpid_arg() 17 op_unsupported_tpid_arg(struct ice_vsi *__always_unused vsi, u16 __always_unused tpid) op_unsupported_tpid_arg() argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_skmsg_load_helpers.c | 32 __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()
|
H A D | test_skb_helpers.c | 22 __u32 tpid; in test_skb_helpers() local 25 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid); in test_skb_helpers()
|
H A D | profiler.inc.h | 359 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 in raw_tracepoint__sched_process_exit() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_skmsg_load_helpers.c | 32 __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()
|
H A D | test_skb_helpers.c | 22 __u32 tpid; in test_skb_helpers() local 25 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid); in test_skb_helpers()
|
H A D | profiler.inc.h | 361 get_var_kill_data(struct pt_regs* ctx, int spid, int tpid, int sig) in get_var_kill_data() argument 376 kill_data->kill_target_pid = tpid; in get_var_kill_data() 383 static INLINE int trace_var_sys_kill(void* ctx, int tpid, int sig) in trace_var_sys_kill() argument 389 struct var_kill_data_arr_t* arr_struct = bpf_map_lookup_elem(&var_tpid_to_data, &tpid); in trace_var_sys_kill() 392 struct var_kill_data_t* kill_data = get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill() 407 get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill() 418 bpf_map_update_elem(&var_tpid_to_data, &tpid, in trace_var_sys_kill() 439 get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill() 447 bpf_map_update_elem(&var_tpid_to_data, &tpid, arr_struct, 0); in trace_var_sys_kill() 631 u32 tpid in raw_tracepoint__sched_process_exit() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_virtchnl.c | 763 vlan->tpid = f->vlan.tpid; in iavf_add_vlans() 910 vlan->tpid = f->vlan.tpid; in iavf_del_vlans() 1181 * @tpid: VLAN TPID (i.e. 0x8100, 0x88a8, etc.) 1183 static u32 iavf_tpid_to_vc_ethertype(u16 tpid) in iavf_tpid_to_vc_ethertype() argument 1185 switch (tpid) { in iavf_tpid_to_vc_ethertype() 1199 * @tpid: VLAN TPID (i.e. 0x8100, 0x88a8, etc.) 1204 struct virtchnl_vlan_setting *msg, u16 tpid, in iavf_set_vc_offload_ethertype() 1208 u16 vc_ethertype = iavf_tpid_to_vc_ethertype(tpid); in iavf_set_vc_offload_ethertype() 1203 iavf_set_vc_offload_ethertype(struct iavf_adapter *adapter, struct virtchnl_vlan_setting *msg, u16 tpid, enum virtchnl_ops offload_op) iavf_set_vc_offload_ethertype() argument 1251 iavf_clear_offload_v2_aq_required(struct iavf_adapter *adapter, u16 tpid, enum virtchnl_ops offload_op) iavf_clear_offload_v2_aq_required() argument 1300 iavf_send_vlan_offload_v2(struct iavf_adapter *adapter, u16 tpid, enum virtchnl_ops offload_op) iavf_send_vlan_offload_v2() argument 1338 iavf_enable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid) iavf_enable_vlan_stripping_v2() argument 1349 iavf_disable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid) iavf_disable_vlan_stripping_v2() argument 1360 iavf_enable_vlan_insertion_v2(struct iavf_adapter *adapter, u16 tpid) iavf_enable_vlan_insertion_v2() argument 1371 iavf_disable_vlan_insertion_v2(struct iavf_adapter *adapter, u16 tpid) iavf_disable_vlan_insertion_v2() argument [all...] |
H A D | iavf.h | 152 #define IAVF_VLAN(vid, tpid) ((struct iavf_vlan){ vid, tpid }) 155 u16 tpid; member 581 void iavf_enable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid); 582 void iavf_disable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid); 583 void iavf_enable_vlan_insertion_v2(struct iavf_adapter *adapter, u16 tpid); 584 void iavf_disable_vlan_insertion_v2(struct iavf_adapter *adapter, u16 tpid);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_dp.c | 447 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()
|
/kernel/linux/linux-5.10/net/dsa/ |
H A D | tag_sja1105.c | 285 u16 tpid, vid, tci; in sja1105_rcv() local 292 tpid = ntohs(hdr->h_proto); in sja1105_rcv() 293 is_tagged = (tpid == ETH_P_SJA1105 || tpid == ETH_P_8021Q || in sja1105_rcv()
|
/kernel/linux/linux-5.10/tools/thermal/tmon/ |
H A D | sysfs.c | 122 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()
|
/kernel/linux/linux-6.6/tools/thermal/tmon/ |
H A D | sysfs.c | 122 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()
|
/kernel/linux/linux-5.10/include/linux/dsa/ |
H A D | 8021q.h | 53 u16 tpid, u16 tci); 91 u16 tpid, u16 tci) in dsa_8021q_xmit() 90 dsa_8021q_xmit(struct sk_buff *skb, struct net_device *netdev, u16 tpid, u16 tci) dsa_8021q_xmit() argument
|
/kernel/linux/linux-5.10/net/openvswitch/ |
H A D | flow.c | 306 if (likely(!eth_type_vlan(vh->tpid))) in parse_vlan_tag() 318 key_vh->tpid = vh->tpid; in parse_vlan_tag() 330 __vlan_hwaccel_put_tag(skb, key_vh->tpid, tci); in parse_vlan_tag() 340 key->eth.vlan.tpid = 0; in clear_vlan() 342 key->eth.cvlan.tpid = 0; in clear_vlan() 351 key->eth.vlan.tpid = skb->vlan_proto; in parse_vlan() 803 skb->protocol = key->eth.cvlan.tpid; in key_extract()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/ |
H A D | ocelot_flower.c | 205 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_tc_flower.c | 44 switch (st->tpid) { in sparx5_tc_flower_es0_tpid() 215 if (st->admin->vtype == VCAP_TYPE_ES0 && st->tpid) in sparx5_tc_flower_handler_vlan_usage() 859 u16 tpid) in sparx5_tc_action_vlan_pop() 872 switch (tpid) { in sparx5_tc_action_vlan_pop() 891 u16 tpid) in sparx5_tc_action_vlan_modify() 909 switch (tpid) { in sparx5_tc_action_vlan_modify() 961 u16 tpid) in sparx5_tc_action_vlan_push() 975 if (tpid == ETH_P_8021AD) { in sparx5_tc_action_vlan_push() 1168 state.tpid); in sparx5_tc_flower_replace() 1174 act, state.tpid); in sparx5_tc_flower_replace() 856 sparx5_tc_action_vlan_pop(struct vcap_admin *admin, struct vcap_rule *vrule, struct flow_cls_offload *fco, u16 tpid) sparx5_tc_action_vlan_pop() argument 887 sparx5_tc_action_vlan_modify(struct vcap_admin *admin, struct vcap_rule *vrule, struct flow_cls_offload *fco, struct flow_action_entry *act, u16 tpid) sparx5_tc_action_vlan_modify() argument 957 sparx5_tc_action_vlan_push(struct vcap_admin *admin, struct vcap_rule *vrule, struct flow_cls_offload *fco, struct flow_action_entry *act, u16 tpid) sparx5_tc_action_vlan_push() argument [all...] |
/kernel/linux/linux-6.6/net/dsa/ |
H A D | tag_8021q.h | 14 u16 tpid, u16 tci);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_tc.c | 176 u16 tpid; in vcap_tc_flower_handler_cvlan_usage() local 181 tpid = be16_to_cpu(mt.key->vlan_tpid); in vcap_tc_flower_handler_cvlan_usage() 183 if (tpid == ETH_P_8021Q) { in vcap_tc_flower_handler_cvlan_usage() 239 st->tpid = be16_to_cpu(mt.key->vlan_tpid); in vcap_tc_flower_handler_vlan_usage()
|
H A D | vcap_tc.h | 16 u16 tpid; member
|
/kernel/linux/linux-6.6/net/openvswitch/ |
H A D | flow.c | 455 if (likely(!eth_type_vlan(vh->tpid))) in parse_vlan_tag() 467 key_vh->tpid = vh->tpid; in parse_vlan_tag() 479 __vlan_hwaccel_put_tag(skb, key_vh->tpid, tci); in parse_vlan_tag() 489 key->eth.vlan.tpid = 0; in clear_vlan() 491 key->eth.cvlan.tpid = 0; in clear_vlan() 500 key->eth.vlan.tpid = skb->vlan_proto; in parse_vlan() 953 skb->protocol = key->eth.cvlan.tpid; in key_extract()
|