Home
last modified time | relevance | path

Searched refs:udph (Results 1 – 12 of 12) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/
Den_selftest.c107 struct udphdr *udph; in mlx5e_test_get_udp_skb() local
128 udph = skb_put(skb, sizeof(struct udphdr)); in mlx5e_test_get_udp_skb()
136 udph->source = htons(9); in mlx5e_test_get_udp_skb()
137 udph->dest = htons(9); /* Discard Protocol */ in mlx5e_test_get_udp_skb()
138 udph->len = htons(sizeof(struct mlx5ehdr) + sizeof(struct udphdr)); in mlx5e_test_get_udp_skb()
139 udph->check = 0; in mlx5e_test_get_udp_skb()
188 struct udphdr *udph; in mlx5e_test_loopback_validate() local
204 udph = (struct udphdr *)((u8 *)iph + 4 * iph->ihl); in mlx5e_test_loopback_validate()
205 if (udph->dest != htons(9)) in mlx5e_test_loopback_validate()
208 mlxh = (struct mlx5ehdr *)((char *)udph + sizeof(*udph)); in mlx5e_test_loopback_validate()
Den_main.c3961 struct udphdr *udph; in mlx5e_tunnel_features_check() local
3987 udph = udp_hdr(skb); in mlx5e_tunnel_features_check()
3988 port = be16_to_cpu(udph->dest); in mlx5e_tunnel_features_check()
/drivers/infiniband/sw/rxe/
Drxe_net.c155 struct udphdr *udph; in rxe_udp_encap_recv() local
175 udph = udp_hdr(skb); in rxe_udp_encap_recv()
178 pkt->hdr = (u8 *)(udph + 1); in rxe_udp_encap_recv()
180 pkt->paylen = be16_to_cpu(udph->len) - sizeof(*udph); in rxe_udp_encap_recv()
234 struct udphdr *udph; in prepare_udp_hdr() local
236 __skb_push(skb, sizeof(*udph)); in prepare_udp_hdr()
238 udph = udp_hdr(skb); in prepare_udp_hdr()
240 udph->dest = dst_port; in prepare_udp_hdr()
241 udph->source = src_port; in prepare_udp_hdr()
242 udph->len = htons(skb->len); in prepare_udp_hdr()
[all …]
Drxe_icrc.c77 struct udphdr *udph; in rxe_icrc_hdr() local
99 udph = (struct udphdr *)(ip4h + 1); in rxe_icrc_hdr()
107 udph = (struct udphdr *)(ip6h + 1); in rxe_icrc_hdr()
113 udph->check = CSUM_MANGLED_0; in rxe_icrc_hdr()
/drivers/net/netdevsim/
Dpsample.c42 struct udphdr *udph; in nsim_dev_psample_skb_build() local
73 udph = skb_put_zero(skb, sizeof(struct udphdr) + data_len); in nsim_dev_psample_skb_build()
74 get_random_bytes(&udph->source, sizeof(u16)); in nsim_dev_psample_skb_build()
75 get_random_bytes(&udph->dest, sizeof(u16)); in nsim_dev_psample_skb_build()
76 udph->len = htons(sizeof(struct udphdr) + data_len); in nsim_dev_psample_skb_build()
Ddev.c660 struct udphdr *udph; in nsim_dev_trap_skb_build() local
690 udph = skb_put_zero(skb, sizeof(struct udphdr) + data_len); in nsim_dev_trap_skb_build()
691 get_random_bytes(&udph->source, sizeof(u16)); in nsim_dev_trap_skb_build()
692 get_random_bytes(&udph->dest, sizeof(u16)); in nsim_dev_trap_skb_build()
693 udph->len = htons(sizeof(struct udphdr) + data_len); in nsim_dev_trap_skb_build()
/drivers/staging/r8188eu/core/
Drtw_br_ext.c668 struct udphdr *udph = (struct udphdr *)((size_t)iph + (iph->ihl << 2)); in dhcp_flag_bcast() local
670 if ((udph->source == __constant_htons(CLIENT_PORT)) && in dhcp_flag_bcast()
671 (udph->dest == __constant_htons(SERVER_PORT))) { /* DHCP request */ in dhcp_flag_bcast()
673 (struct dhcpMessage *)((size_t)udph + sizeof(struct udphdr)); in dhcp_flag_bcast()
685 sum = ~(udph->check) & 0xffff; in dhcp_flag_bcast()
689 udph->check = ~sum; in dhcp_flag_bcast()
/drivers/net/ethernet/intel/iavf/
Diavf_fdir.c427 struct udphdr *udph = (struct udphdr *)hdr->buffer; in iavf_fill_fdir_udp_hdr() local
432 udph->source = fltr->ip_data.src_port; in iavf_fill_fdir_udp_hdr()
437 udph->dest = fltr->ip_data.dst_port; in iavf_fill_fdir_udp_hdr()
/drivers/net/ethernet/intel/ice/
Dice_virtchnl_fdir.c1111 struct udphdr *udph; in ice_vc_fdir_parse_pattern() local
1173 udph = (struct udphdr *)hdr->buffer; in ice_vc_fdir_parse_pattern()
1181 input->ip.v4.src_port = udph->source; in ice_vc_fdir_parse_pattern()
1182 input->ip.v4.dst_port = udph->dest; in ice_vc_fdir_parse_pattern()
1184 input->ip.v6.src_port = udph->source; in ice_vc_fdir_parse_pattern()
1185 input->ip.v6.dst_port = udph->dest; in ice_vc_fdir_parse_pattern()
/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c270 struct udphdr *udph; in vmxnet3_features_check() local
285 udph = udp_hdr(skb); in vmxnet3_features_check()
286 port = be16_to_cpu(udph->dest); in vmxnet3_features_check()
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c580 struct udphdr *udph = udp_hdr(skb); in otx2_sqe_add_ext() local
599 udph->len = htons(sizeof(struct udphdr)); in otx2_sqe_add_ext()
/drivers/net/ethernet/cisco/enic/
Denic_main.c249 struct udphdr *udph; in enic_features_check() local
284 udph = udp_hdr(skb); in enic_features_check()
285 port = be16_to_cpu(udph->dest); in enic_features_check()