/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | nft_concat_range.sh | 533 [ -n "${dst_port}" ] && dst_port="-ud ${dst_port}" 538 ${dst_port} "${dst_addr4}" 541 dst_port= 555 [ -z "${dst_port}" ] && dst_port=12345 557 echo "test4" | B socat -t 0.01 STDIN UDP4-DATAGRAM:${dst_addr4}:${dst_port}"${__socatbind}" 580 "${src_port}" "${dst_addr4}" "${dst_port}" 593 B bash -c "echo > /dev/udp/${dst_addr4}/${dst_port}" 610 [ -n "${dst_port}" ] && dst_port="-ud ${dst_port}" 621 ${dst_port} "${dst_addr6}" 624 dst_port= [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | vsock_virtio_transport_common.h | 42 __u32 dst_cid, __u32 dst_port, 50 dst_cid, dst_port, 60 __field(__u32, dst_port) 70 __entry->dst_port = dst_port; 78 __entry->dst_cid, __entry->dst_port, 88 __u32 dst_cid, __u32 dst_port, 98 dst_cid, dst_port, 110 __field(__u32, dst_port) 122 __entry->dst_port = dst_port; 133 __entry->dst_cid, __entry->dst_port,
|
/openbmc/linux/net/openvswitch/ |
H A D | vport-geneve.c | 33 u16 dst_port; member 46 if (nla_put_u16(skb, OVS_TUNNEL_ATTR_DST_PORT, geneve_port->dst_port)) in geneve_get_options() 59 u16 dst_port; in geneve_tnl_create() local 69 dst_port = nla_get_u16(a); in geneve_tnl_create() 82 geneve_port->dst_port = dst_port; in geneve_tnl_create() 85 dev = geneve_dev_create_fb(net, parms->name, NET_NAME_USER, dst_port); in geneve_tnl_create()
|
H A D | vport-vxlan.c | 25 __be16 dst_port = vxlan->cfg.dst_port; in vxlan_get_options() local 27 if (nla_put_u16(skb, OVS_TUNNEL_ATTR_DST_PORT, ntohs(dst_port))) in vxlan_get_options() 93 conf.dst_port = htons(nla_get_u16(a)); in vxlan_tnl_create()
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | tb.c | 135 tunnel->dst_port->sw == out->sw) { in tb_attach_bandwidth_group() 262 tb_discover_dp_resource(tb, tunnel->dst_port); in tb_discover_dp_resources() 510 struct tb_switch *parent = tunnel->dst_port->sw; in tb_discover_tunnels() 518 struct tb_port *out = tunnel->dst_port; in tb_discover_tunnels() 609 struct tb_port *dst_port) in tb_find_tunnel() argument 617 (dst_port && dst_port == tunnel->dst_port))) { in tb_find_tunnel() 627 struct tb_port *dst_port) in tb_find_first_usb3_tunnel() argument 633 if (tb_port_path_direction_downstream(src_port, dst_port)) in tb_find_first_usb3_tunnel() 634 sw = dst_port->sw; in tb_find_first_usb3_tunnel() 667 struct tb_port *dst_port, in tb_consumed_usb3_pcie_bandwidth() argument [all …]
|
H A D | tunnel.c | 162 struct tb_port *port = tb_upstream_port(tunnel->dst_port->sw); in tb_pci_set_ext_encapsulation() 173 ret = usb4_pci_port_set_ext_encapsulation(tunnel->dst_port, enable); in tb_pci_set_ext_encapsulation() 196 if (tb_port_is_pcie_up(tunnel->dst_port)) { in tb_pci_activate() 197 res = tb_pci_port_enable(tunnel->dst_port, activate); in tb_pci_activate() 287 &tunnel->dst_port, "PCIe Up", alloc_hopid); in tb_tunnel_discover_pci() 297 path = tb_path_discover(tunnel->dst_port, -1, down, TB_PCI_HOPID, NULL, in tb_tunnel_discover_pci() 306 if (!tb_port_is_pcie_up(tunnel->dst_port)) { in tb_tunnel_discover_pci() 307 tb_port_warn(tunnel->dst_port, in tb_tunnel_discover_pci() 317 if (!tb_pci_port_is_enabled(tunnel->dst_port)) { in tb_tunnel_discover_pci() 357 tunnel->dst_port = up; in tb_tunnel_alloc_pci() [all …]
|
H A D | test.c | 425 struct tb_port *src_port, *dst_port, *p; in tb_test_path_basic() local 431 dst_port = src_port; in tb_test_path_basic() 433 p = tb_next_port_on_path(src_port, dst_port, NULL); in tb_test_path_basic() 434 KUNIT_EXPECT_PTR_EQ(test, p, dst_port); in tb_test_path_basic() 436 p = tb_next_port_on_path(src_port, dst_port, p); in tb_test_path_basic() 442 struct tb_port *src_port, *dst_port, *p; in tb_test_path_not_connected_walk() local 450 dst_port = &dev->ports[16]; in tb_test_path_not_connected_walk() 452 p = tb_next_port_on_path(src_port, dst_port, NULL); in tb_test_path_not_connected_walk() 455 p = tb_next_port_on_path(src_port, dst_port, p); in tb_test_path_not_connected_walk() 458 p = tb_next_port_on_path(src_port, dst_port, p); in tb_test_path_not_connected_walk() [all …]
|
H A D | tunnel.h | 52 struct tb_port *dst_port; member 150 tb_route(__tunnel->dst_port->sw), \ 151 __tunnel->dst_port->port, \
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | tc_police.sh | 133 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 159 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 171 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 213 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 220 dst_ip 198.51.100.1 ip_proto udp dst_port 22222 \ 242 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 247 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 252 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 305 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 331 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ [all …]
|
H A D | router_multicast.sh | 324 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop 326 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop 328 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop 330 skip_hw dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action pass 369 dst_ip ff0e::3 ip_proto udp dst_port 12345 action drop 371 dst_ip ff0e::3 ip_proto udp dst_port 12345 action drop 373 dst_ip ff0e::3 ip_proto udp dst_port 12345 action drop 375 skip_hw dst_ip ff0e::3 ip_proto udp dst_port 12345 action pass 420 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop 422 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop [all …]
|
H A D | pedit_l4port.sh | 177 do_test_pedit_l4port "dev $swp1 ingress" udp dport dst_port 178 do_test_pedit_l4port "dev $swp2 egress" udp dport dst_port 189 do_test_pedit_l4port "dev $swp1 ingress" tcp dport dst_port 190 do_test_pedit_l4port "dev $swp2 egress" tcp dport dst_port
|
/openbmc/qemu/tools/ebpf/ |
H A D | rss.bpf.c | 62 __u16 dst_port; member 361 info->dst_port = tcp.dest; in parse_packet() 373 info->dst_port = udp.dest; in parse_packet() 412 &packet_info.dst_port, in calculate_rss_hash() 413 sizeof(packet_info.dst_port)); in calculate_rss_hash() 427 &packet_info.dst_port, in calculate_rss_hash() 428 sizeof(packet_info.dst_port)); in calculate_rss_hash() 467 &packet_info.dst_port, in calculate_rss_hash() 468 sizeof(packet_info.dst_port)); in calculate_rss_hash() 499 &packet_info.dst_port, in calculate_rss_hash() [all …]
|
/openbmc/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_mrp.c | 51 int dst_port) in ocelot_mrp_redirect_add_vcap() argument 71 filter->action.port_mask = BIT(dst_port); in ocelot_mrp_redirect_add_vcap() 165 int dst_port; in ocelot_mrp_add_ring_role() local 182 dst_port = ocelot_mrp_find_partner_port(ocelot, ocelot_port); in ocelot_mrp_add_ring_role() 183 if (dst_port == -1) in ocelot_mrp_add_ring_role() 186 err = ocelot_mrp_redirect_add_vcap(ocelot, port, dst_port); in ocelot_mrp_add_ring_role()
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | port_range_occ.sh | 74 flower skip_sw ip_proto udp src_port 1-100 dst_port 1-100 \ 80 flower skip_sw ip_proto tcp src_port 1-100 dst_port 1-100 \ 83 flower skip_sw ip_proto udp src_port 1-100 dst_port 1-100 \ 86 flower skip_sw ip_proto tcp src_port 1-100 dst_port 1-100 \
|
H A D | one_armed_router.sh | 136 skip_hw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \ 140 skip_hw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \ 144 skip_sw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \ 179 skip_hw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \ 183 skip_hw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \ 187 skip_sw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \
|
H A D | rif_mac_profiles.sh | 113 flower skip_sw ip_proto udp src_port 12345 dst_port 54321 \ 120 dst_port 54321 action pass 148 flower skip_sw ip_proto udp src_port 54321 dst_port 12345 \ 153 dst_port 12345 action pass
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_sock_fields.c | 81 dst->dst_port = src->dst_port; in skcpy() 148 } else if (sk->dst_port == srv_sa6.sin6_port) { in egress_read_sock_fields() 262 __u32 *word = (__u32 *)&sk->dst_port; in sk_dst_port__load_word() 271 half = (__u16 *)&sk->dst_port; in sk_dst_port__load_half() 277 __u8 *byte = (__u8 *)&sk->dst_port; in sk_dst_port__load_byte()
|
H A D | verifier_sock.c | 238 __imm_const(bpf_sock_dst_port, offsetof(struct bpf_sock, dst_port)) in port_word_load_backward_compatibility() 262 __imm_const(bpf_sock_dst_port, offsetof(struct bpf_sock, dst_port)) in sk_dst_port_half_load() 286 __imm_const(__imm_0, offsetof(struct bpf_sock, dst_port) + 2), in dst_port_half_load_invalid_1() 311 __imm_const(__imm_0, offsetof(struct bpf_sock, dst_port) + 1), in sk_dst_port_byte_load() 313 __imm_const(bpf_sock_dst_port, offsetof(struct bpf_sock, dst_port)) in sk_dst_port_byte_load() 337 __imm_const(__imm_0, offsetof(struct bpf_sock, dst_port) + 2), in dst_port_byte_load_invalid() 363 __imm_const(bpf_sock_dst_port__end, offsetofend(struct bpf_sock, dst_port)) in dst_port_half_load_invalid_2()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_fdir.c | 948 input->ip.v4.dst_port); in ice_fdir_get_gen_prgm_pkt() 963 input->ip.v4.dst_port); in ice_fdir_get_gen_prgm_pkt() 978 input->ip.v4.dst_port); in ice_fdir_get_gen_prgm_pkt() 1050 input->ip.v4.dst_port); in ice_fdir_get_gen_prgm_pkt() 1055 input->ip.v6.dst_port); in ice_fdir_get_gen_prgm_pkt() 1069 input->ip.v6.dst_port); in ice_fdir_get_gen_prgm_pkt() 1082 input->ip.v6.dst_port); in ice_fdir_get_gen_prgm_pkt() 1095 input->ip.v6.dst_port); in ice_fdir_get_gen_prgm_pkt() 1233 a->ip.v4.dst_port == b->ip.v4.dst_port && in ice_fdir_comp_rules() 1249 if (a->ip.v6.dst_port == b->ip.v6.dst_port && in ice_fdir_comp_rules() [all …]
|
H A D | ice_ethtool_fdir.c | 158 fsp->h_u.tcp_ip4_spec.pdst = rule->ip.v4.dst_port; in ice_get_ethtool_fdir_entry() 162 fsp->m_u.tcp_ip4_spec.pdst = rule->mask.v4.dst_port; in ice_get_ethtool_fdir_entry() 190 fsp->h_u.tcp_ip6_spec.pdst = rule->ip.v6.dst_port; in ice_get_ethtool_fdir_entry() 198 fsp->m_u.tcp_ip6_spec.pdst = rule->mask.v6.dst_port; in ice_get_ethtool_fdir_entry() 793 enum ice_flow_field src_addr, dst_addr, src_port, dst_port; in ice_set_init_fdir_seg() local 810 dst_port = ICE_FLOW_FIELD_IDX_TCP_DST_PORT; in ice_set_init_fdir_seg() 813 dst_port = ICE_FLOW_FIELD_IDX_UDP_DST_PORT; in ice_set_init_fdir_seg() 833 ice_flow_set_fld(seg, dst_port, ICE_FLOW_FLD_OFF_INVAL, in ice_set_init_fdir_seg() 927 enum ice_flow_field src_port, dst_port; in ice_set_fdir_ip4_seg() local 940 dst_port = ICE_FLOW_FIELD_IDX_TCP_DST_PORT; in ice_set_fdir_ip4_seg() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_fdir.c | 78 if (fltr->ip_mask.dst_port && fltr->ip_mask.dst_port != htons(U16_MAX)) in iavf_validate_fdir_fltr_masks() 286 switch (ntohs(fltr->ip_data.dst_port)) { in iavf_fill_fdir_udp_flex_pay_hdr() 408 if (fltr->ip_mask.dst_port == htons(U16_MAX)) { in iavf_fill_fdir_tcp_hdr() 409 tcph->dest = fltr->ip_data.dst_port; in iavf_fill_fdir_tcp_hdr() 437 if (fltr->ip_mask.dst_port == htons(U16_MAX)) { in iavf_fill_fdir_udp_hdr() 438 udph->dest = fltr->ip_data.dst_port; in iavf_fill_fdir_udp_hdr() 469 if (fltr->ip_mask.dst_port == htons(U16_MAX)) { in iavf_fill_fdir_sctp_hdr() 470 sctph->dest = fltr->ip_data.dst_port; in iavf_fill_fdir_sctp_hdr() 727 ntohs(fltr->ip_data.dst_port), in iavf_print_fdir_fltr() 755 ntohs(fltr->ip_data.dst_port), in iavf_print_fdir_fltr()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_filter.c | 27 __be16 dst_port; member 198 ntohs(fltr->tuple.dst_port), fltr->rxq_id); in qede_arfs_filter_op() 389 __be16 src_port, __be16 dst_port, u8 ip_proto) in qede_arfs_htbl_key_search() argument 398 tpos->tuple.dst_port == dst_port) in qede_arfs_htbl_key_search() 499 n->tuple.dst_port = ports[1]; in qede_rx_flow_steer() 1349 fsp->h_u.tcp_ip4_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry() 1358 fsp->h_u.tcp_ip6_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry() 1444 ports[1] = t->dst_port; in qede_flow_build_ipv4_hdr() 1455 &t->dst_ipv4, t->dst_port); in qede_flow_stringify_ipv4_hdr() 1496 ports[1] = t->dst_port; in qede_flow_build_ipv6_hdr() [all …]
|
/openbmc/linux/drivers/staging/rtl8192u/ieee80211/ |
H A D | rtl819x_TS.h | 41 u16 dst_port; member 55 u16 dst_port; member
|
/openbmc/qemu/net/ |
H A D | colo.c | 29 c += (key->src_port | key->dst_port << 16); in connection_key_hash() 107 key->dst_port = ntohs(tmp_ports >> 16); in extract_ip_and_port() 112 key->dst_port = ntohs(tmp_ports & 0xffff); in extract_ip_and_port()
|
/openbmc/linux/net/vmw_vsock/ |
H A D | virtio_transport_common.c | 53 u32 dst_port) in virtio_transport_alloc_skb() argument 71 hdr->dst_port = cpu_to_le32(dst_port); in virtio_transport_alloc_skb() 96 dst_cid, dst_port, in virtio_transport_alloc_skb() 143 hdr->dst_port = pkt_hdr->dst_port; in virtio_transport_build_skb() 205 u32 src_cid, src_port, dst_cid, dst_port; in virtio_transport_send_pkt_info() local 222 dst_port = vsk->remote_addr.svm_port; in virtio_transport_send_pkt_info() 225 dst_port = info->remote_port; in virtio_transport_send_pkt_info() 247 dst_cid, dst_port); in virtio_transport_send_pkt_info() 974 le32_to_cpu(hdr->dst_port), in virtio_transport_reset_no_sock() 1352 le32_to_cpu(hdr->dst_port)); in virtio_transport_recv_listen() [all …]
|