Searched refs:udph (Results 1 – 8 of 8) sorted by relevance
107 struct udphdr *udph; in mlx5e_test_get_udp_skb() local128 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() local204 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()
4365 struct udphdr *udph; in mlx5e_tunnel_features_check() local4391 udph = udp_hdr(skb); in mlx5e_tunnel_features_check()4392 port = be16_to_cpu(udph->dest); in mlx5e_tunnel_features_check()
16 struct udphdr *udph; in rxe_icrc_hdr() local38 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()
155 struct udphdr *udph; in rxe_udp_encap_recv() local174 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() local238 __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 …]
500 struct udphdr *udph; in nsim_dev_trap_skb_build() local530 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()
285 struct udphdr *udph; in vmxnet3_features_check() local300 udph = udp_hdr(skb); in vmxnet3_features_check()301 port = be16_to_cpu(udph->dest); in vmxnet3_features_check()
532 struct udphdr *udph = udp_hdr(skb); in otx2_sqe_add_ext() local551 udph->len = htons(sizeof(struct udphdr)); in otx2_sqe_add_ext()
249 struct udphdr *udph; in enic_features_check() local284 udph = udp_hdr(skb); in enic_features_check()285 port = be16_to_cpu(udph->dest); in enic_features_check()