Home
last modified time | relevance | path

Searched refs:udph (Results 1 – 8 of 8) 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.c4365 struct udphdr *udph; in mlx5e_tunnel_features_check() local
4391 udph = udp_hdr(skb); in mlx5e_tunnel_features_check()
4392 port = be16_to_cpu(udph->dest); in mlx5e_tunnel_features_check()
/drivers/infiniband/sw/rxe/
Drxe_icrc.c16 struct udphdr *udph; in rxe_icrc_hdr() local
38 udph = (struct udphdr *)(ip4h + 1); in rxe_icrc_hdr()
46 udph = (struct udphdr *)(ip6h + 1); in rxe_icrc_hdr()
52 udph->check = CSUM_MANGLED_0; in rxe_icrc_hdr()
Drxe_net.c155 struct udphdr *udph; in rxe_udp_encap_recv() local
174 udph = udp_hdr(skb); in rxe_udp_encap_recv()
177 pkt->hdr = (u8 *)(udph + 1); in rxe_udp_encap_recv()
179 pkt->paylen = be16_to_cpu(udph->len) - sizeof(*udph); in rxe_udp_encap_recv()
236 struct udphdr *udph; in prepare_udp_hdr() local
238 __skb_push(skb, sizeof(*udph)); in prepare_udp_hdr()
240 udph = udp_hdr(skb); in prepare_udp_hdr()
242 udph->dest = dst_port; in prepare_udp_hdr()
243 udph->source = src_port; in prepare_udp_hdr()
244 udph->len = htons(skb->len); in prepare_udp_hdr()
[all …]
/drivers/net/netdevsim/
Ddev.c500 struct udphdr *udph; in nsim_dev_trap_skb_build() local
530 udph = skb_put_zero(skb, sizeof(struct udphdr) + data_len); in nsim_dev_trap_skb_build()
531 get_random_bytes(&udph->source, sizeof(u16)); in nsim_dev_trap_skb_build()
532 get_random_bytes(&udph->dest, sizeof(u16)); in nsim_dev_trap_skb_build()
533 udph->len = htons(sizeof(struct udphdr) + data_len); in nsim_dev_trap_skb_build()
/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c285 struct udphdr *udph; in vmxnet3_features_check() local
300 udph = udp_hdr(skb); in vmxnet3_features_check()
301 port = be16_to_cpu(udph->dest); in vmxnet3_features_check()
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c532 struct udphdr *udph = udp_hdr(skb); in otx2_sqe_add_ext() local
551 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()