Home
last modified time | relevance | path

Searched refs:source_port (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.1.9/net/dsa/
Dtag_sja1105.c96 u64 source_port; member
118 packing(buf + 6, &meta->source_port, 7, 0, 1, UNPACK, 0); in sja1105_meta_unpack()
511 static void sja1105_vlan_rcv(struct sk_buff *skb, int *source_port, in sja1105_vlan_rcv() argument
523 return dsa_8021q_rcv(skb, source_port, switch_id, vbid); in sja1105_vlan_rcv()
532 int source_port = -1, switch_id = -1, vbid = -1; in sja1105_rcv() local
545 sja1105_vlan_rcv(skb, &source_port, &switch_id, &vbid, &vid); in sja1105_rcv()
551 source_port = hdr->h_dest[3]; in sja1105_rcv()
558 source_port = meta.source_port; in sja1105_rcv()
566 else if (source_port == -1 || switch_id == -1) in sja1105_rcv()
569 skb->dev = dsa_master_find_slave(netdev, switch_id, source_port); in sja1105_rcv()
[all …]
Dtag_xrs700x.c30 int source_port; in xrs700x_rcv() local
35 source_port = ffs((int)trailer[0]) - 1; in xrs700x_rcv()
37 if (source_port < 0) in xrs700x_rcv()
40 skb->dev = dsa_master_find_slave(dev, 0, source_port); in xrs700x_rcv()
Dtag_brcm.c141 int source_port; in brcm_tag_rcv_ll() local
160 source_port = brcm_tag[3] & BRCM_EG_PID_MASK; in brcm_tag_rcv_ll()
162 skb->dev = dsa_master_find_slave(dev, 0, source_port); in brcm_tag_rcv_ll()
251 int source_port; in brcm_leg_tag_rcv() local
259 source_port = brcm_tag[5] & BRCM_LEG_PORT_ID; in brcm_leg_tag_rcv()
261 skb->dev = dsa_master_find_slave(dev, 0, source_port); in brcm_leg_tag_rcv()
Dtag_trailer.c30 int source_port; in trailer_rcv() local
40 source_port = trailer[1] & 7; in trailer_rcv()
42 skb->dev = dsa_master_find_slave(dev, 0, source_port); in trailer_rcv()
Dtag_lan9303.c81 unsigned int source_port; in lan9303_rcv() local
98 source_port = lan9303_tag1 & 0x3; in lan9303_rcv()
100 skb->dev = dsa_master_find_slave(dev, 0, source_port); in lan9303_rcv()
Dtag_dsa.c202 int source_device, source_port; in dsa_rcv_ll() local
254 source_port = (dsa_header[1] >> 3) & 0x1f; in dsa_rcv_ll()
264 lag = dsa_lag_by_id(cpu_dp->dst, source_port + 1); in dsa_rcv_ll()
268 source_port); in dsa_rcv_ll()
Dtag_8021q.c483 void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id, in dsa_8021q_rcv() argument
499 *source_port = dsa_8021q_rx_source_port(vid); in dsa_8021q_rcv()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Drdma.c71 misc_parameters.source_port); in mlx5_rdma_enable_roce_steering()
83 MLX5_SET(fte_match_set_misc, misc, source_port, in mlx5_rdma_enable_roce_steering()
87 MLX5_SET_TO_ONES(fte_match_set_misc, misc, source_port); in mlx5_rdma_enable_roce_steering()
Deswitch_offloads_termtbl.c207 misc_parameters.source_port); in mlx5_eswitch_offload_is_uplink_port()
209 misc_parameters.source_port); in mlx5_eswitch_offload_is_uplink_port()
Deswitch_offloads.c162 MLX5_SET(fte_match_set_misc, misc, source_port, vport); in mlx5_eswitch_set_rule_source_port()
170 MLX5_SET_TO_ONES(fte_match_set_misc, misc, source_port); in mlx5_eswitch_set_rule_source_port()
1027 MLX5_SET(fte_match_set_misc, misc, source_port, from_esw->manager_vport); in mlx5_eswitch_add_send_to_vport_rule()
1034 MLX5_SET_TO_ONES(fte_match_set_misc, misc, source_port); in mlx5_eswitch_add_send_to_vport_rule()
1184 MLX5_SET_TO_ONES(fte_match_set_misc, misc, source_port); in peer_miss_rules_setup()
1211 MLX5_SET(fte_match_set_misc, misc, source_port, vport); in esw_set_peer_miss_rule_source_port()
1262 MLX5_SET(fte_match_set_misc, misc, source_port, MLX5_VPORT_ECPF); in esw_add_fdb_peer_miss_rules()
1468 misc_parameters.source_port); in esw_set_flow_group_source_port()
1649 MLX5_SET_TO_ONES(fte_match_param, match_criteria, misc_parameters.source_port); in esw_create_send_to_vport_group()
2122 MLX5_SET(fte_match_set_misc, misc, source_port, vport); in mlx5_eswitch_create_vport_rx_rule()
[all …]
Deswitch.c227 MLX5_SET(fte_match_set_misc, mv_misc, source_port, MLX5_VPORT_UPLINK); in __esw_fdb_set_vport_rule()
228 MLX5_SET_TO_ONES(fte_match_set_misc, mc_misc, source_port); in __esw_fdb_set_vport_rule()
/linux-6.1.9/include/linux/dsa/
D8021q.h44 void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id,
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dlegacy.c148 MLX5_SET_TO_ONES(fte_match_param, match_criteria, misc_parameters.source_port); in esw_create_legacy_fdb_table()
274 MLX5_SET(fte_match_set_misc, misc, source_port, MLX5_VPORT_UPLINK); in _mlx5_eswitch_set_vepa_locked()
277 MLX5_SET_TO_ONES(fte_match_set_misc, misc, source_port); in _mlx5_eswitch_set_vepa_locked()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.c172 PRINT_MASKED_VAL_MISC(u16, source_port, source_port, p, "%u"); in print_misc_parameters_hdrs()
/linux-6.1.9/include/net/
Damt.h247 __be16 source_port; member
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste_v0.c854 DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, source_port, spec, tcp_sport); in dr_ste_v0_build_eth_l3_ipv4_5_tuple_tag()
855 DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, source_port, spec, udp_sport); in dr_ste_v0_build_eth_l3_ipv4_5_tuple_tag()
1639 DR_STE_SET_ONES(src_gvmi_qp, bit_mask, source_gvmi, misc_mask, source_port); in dr_ste_v0_build_src_gvmi_qpn_bit_mask()
1676 misc->source_port); in dr_ste_v0_build_src_gvmi_qpn_tag()
1679 misc->source_port); in dr_ste_v0_build_src_gvmi_qpn_tag()
1686 misc->source_port = 0; in dr_ste_v0_build_src_gvmi_qpn_tag()
Ddr_matcher.c315 return (misc->source_sqn || misc->source_port); in dr_mask_is_gvmi_or_qpn_set()
451 rx && mask.misc.source_port) { in dr_matcher_set_ste_builders()
452 mask.misc.source_port = 0; in dr_matcher_set_ste_builders()
Ddr_ste_v1.c1110 DR_STE_SET_TAG(eth_l3_ipv4_5_tuple_v1, tag, source_port, spec, tcp_sport); in dr_ste_v1_build_eth_l3_ipv4_5_tuple_tag()
1111 DR_STE_SET_TAG(eth_l3_ipv4_5_tuple_v1, tag, source_port, spec, udp_sport); in dr_ste_v1_build_eth_l3_ipv4_5_tuple_tag()
1852 DR_STE_SET_ONES(src_gvmi_qp_v1, bit_mask, source_gvmi, misc_mask, source_port); in dr_ste_v1_build_src_gvmi_qpn_bit_mask()
1887 vport_cap = mlx5dr_domain_get_vport_cap(vport_dmn, misc->source_port); in dr_ste_v1_build_src_gvmi_qpn_tag()
1890 misc->source_port); in dr_ste_v1_build_src_gvmi_qpn_tag()
1897 misc->source_port = 0; in dr_ste_v1_build_src_gvmi_qpn_tag()
Ddr_rule.c1068 if (mask->misc.source_port) { in dr_rule_skip()
1069 if (rx && value->misc.source_port != MLX5_VPORT_UPLINK) in dr_rule_skip()
1072 if (!rx && value->misc.source_port == MLX5_VPORT_UPLINK) in dr_rule_skip()
Ddr_ste.c648 if (mask->misc.source_port && mask->misc.source_port != 0xffff) { in mlx5dr_ste_build_pre_check()
740 spec->source_port = IFC_GET_CLR(fte_match_set_misc, mask, source_port, clr); in dr_ste_copy_mask_misc()
Dmlx5_ifc_dr_ste_v1.h260 u8 source_port[0x10]; member
Dmlx5_ifc_dr.h243 u8 source_port[0x10]; member
/linux-6.1.9/net/sctp/
Doutput.c151 packet->source_port = sport; in sctp_packet_init()
608 sh->source = htons(packet->source_port); in sctp_packet_transmit()
/linux-6.1.9/drivers/net/
Damt.c598 &tunnel->ip4, ntohs(tunnel->source_port), in __amt_update_relay_status()
1104 tunnel->source_port, in amt_send_multicast_data()
1162 tunnel->source_port, in amt_send_membership_query()
2697 tunnel->source_port = udph->source; in amt_request_handler()
2719 (__force u32)tunnel->source_port, in amt_request_handler()
/linux-6.1.9/include/net/sctp/
Dstructs.h707 __u16 source_port; member

12