Home
last modified time | relevance | path

Searched refs:udphdr (Results 1 – 25 of 69) sorted by relevance

123

/drivers/infiniband/sw/rxe/
Drxe_icrc.c16 struct udphdr *udph; in rxe_icrc_hdr()
20 int hdr_size = sizeof(struct udphdr) + in rxe_icrc_hdr()
26 u8 pshdr[sizeof(struct udphdr) + in rxe_icrc_hdr()
38 udph = (struct udphdr *)(ip4h + 1); in rxe_icrc_hdr()
46 udph = (struct udphdr *)(ip6h + 1); in rxe_icrc_hdr()
Drxe_net.c155 struct udphdr *udph; in rxe_udp_encap_recv()
236 struct udphdr *udph; in prepare_udp_hdr()
437 hdr_len = ETH_HLEN + sizeof(struct udphdr) + in rxe_init_packet()
440 hdr_len = ETH_HLEN + sizeof(struct udphdr) + in rxe_init_packet()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_selftest.c99 sizeof(struct udphdr) + sizeof(struct mlx5ehdr))
107 struct udphdr *udph; in mlx5e_test_get_udp_skb()
128 udph = skb_put(skb, sizeof(struct udphdr)); in mlx5e_test_get_udp_skb()
138 udph->len = htons(sizeof(struct mlx5ehdr) + sizeof(struct udphdr)); in mlx5e_test_get_udp_skb()
146 iplen = sizeof(struct iphdr) + sizeof(struct udphdr) + in mlx5e_test_get_udp_skb()
188 struct udphdr *udph; in mlx5e_test_loopback_validate()
204 udph = (struct udphdr *)((u8 *)iph + 4 * iph->ihl); in mlx5e_test_loopback_validate()
/drivers/infiniband/core/
Dlag.c19 struct udphdr *uh; in rdma_build_skb()
25 hdr_len = ETH_HLEN + sizeof(struct udphdr) + LL_RESERVED_SPACE(netdev); in rdma_build_skb()
34 skb_push(skb, sizeof(struct udphdr)); in rdma_build_skb()
40 uh->len = htons(sizeof(struct udphdr)); in rdma_build_skb()
50 iph->tot_len = htons(sizeof(struct udphdr) + sizeof(struct in rdma_build_skb()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_mplsoudp.c15 return sizeof(struct udphdr) + MPLS_HLEN; in calc_hlen()
33 struct udphdr *udp = (struct udphdr *)(buf); in generate_ip_tun_hdr()
Dtc_tun_vxlan.c88 struct udphdr *udp = (struct udphdr *)(buf); in mlx5e_gen_ip_tunnel_header_vxlan()
93 vxh = (struct vxlanhdr *)((char *)udp + sizeof(struct udphdr)); in mlx5e_gen_ip_tunnel_header_vxlan()
Dtc_tun_geneve.c17 return sizeof(struct udphdr) + in mlx5e_tc_tun_calc_hlen_geneve()
97 struct udphdr *udp = (struct udphdr *)(buf); in mlx5e_gen_ip_tunnel_header_geneve()
100 geneveh = (struct genevehdr *)((char *)udp + sizeof(struct udphdr)); in mlx5e_gen_ip_tunnel_header_geneve()
Dtc_ct.c304 if (offset == offsetof(struct udphdr, source)) in mlx5_tc_ct_rule_to_tuple_nat()
306 else if (offset == offsetof(struct udphdr, dest)) in mlx5_tc_ct_rule_to_tuple_nat()
583 if (offset == offsetof(struct udphdr, source)) in mlx5_tc_ct_parse_mangle_to_mod_act()
585 else if (offset == offsetof(struct udphdr, dest)) in mlx5_tc_ct_parse_mangle_to_mod_act()
/drivers/net/wireguard/
Dreceive.c57 struct udphdr *udp; in prepare_skb_header()
61 (skb_transport_header(skb) + sizeof(struct udphdr)) > in prepare_skb_header()
67 data_offset + sizeof(struct udphdr) > skb->len)) in prepare_skb_header()
73 if (unlikely(data_len < sizeof(struct udphdr) || in prepare_skb_header()
79 data_len -= sizeof(struct udphdr); in prepare_skb_header()
80 data_offset = (u8 *)udp + sizeof(struct udphdr) - skb->data; in prepare_skb_header()
Dmessages.h122 sizeof(struct udphdr) + NET_SKB_PAD)
/drivers/net/phy/mscc/
Dmscc_ptp.c363 struct udphdr *udphdr) in get_ptp_header_l4() argument
368 return (struct vsc85xx_ptphdr *)(((unsigned char *)udphdr) + UDP_HLEN); in get_ptp_header_l4()
374 struct udphdr *udphdr; in get_ptp_header_tx() local
385 udphdr = udp_hdr(skb); in get_ptp_header_tx()
387 return get_ptp_header_l4(skb, iphdr, udphdr); in get_ptp_header_tx()
393 struct udphdr *udphdr; in get_ptp_header_rx() local
400 udphdr = (struct udphdr *)(skb->data + iphdr->ihl * 4); in get_ptp_header_rx()
402 return get_ptp_header_l4(skb, iphdr, udphdr); in get_ptp_header_rx()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ptp.c60 struct udphdr *uh; in cxgb4_ptp_is_ptp_tx()
86 struct udphdr *uh = (struct udphdr *)(skb->data + ETH_HLEN + in cxgb4_ptp_is_ptp_rx()
/drivers/net/
Dgtp.c214 unsigned int hdrlen = sizeof(struct udphdr) + in gtp0_udp_encap_recv()
222 gtp0 = (struct gtp0_header *)(skb->data + sizeof(struct udphdr)); in gtp0_udp_encap_recv()
241 unsigned int hdrlen = sizeof(struct udphdr) + in gtp1u_udp_encap_recv()
249 gtp1 = (struct gtp1_header *)(skb->data + sizeof(struct udphdr)); in gtp1u_udp_encap_recv()
270 gtp1 = (struct gtp1_header *)(skb->data + sizeof(struct udphdr)); in gtp1u_udp_encap_recv()
526 sizeof(struct iphdr) - sizeof(struct udphdr); in gtp_build_skb_ip4()
634 sizeof(struct udphdr) + in gtp_link_setup()
Dbareudp.c23 #define BAREUDP_BASE_HLEN sizeof(struct udphdr)
25 sizeof(struct udphdr))
27 sizeof(struct udphdr))
/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_map_data.c29 check = &(((struct udphdr *)txporthdr)->check); in rmnet_map_get_csum_field()
143 ntohs(((struct udphdr *)txporthdr)->len) : in rmnet_map_ipv6_dl_csum_trailer()
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Den_accel.h103 int payload_len = skb_shinfo(skb)->gso_size + sizeof(struct udphdr); in mlx5e_udp_gso_handle_tx_skb()
/drivers/net/netdevsim/
Ddev.c500 struct udphdr *udph; in nsim_dev_trap_skb_build()
507 tot_len = sizeof(struct iphdr) + sizeof(struct udphdr) + data_len; in nsim_dev_trap_skb_build()
530 udph = skb_put_zero(skb, sizeof(struct udphdr) + data_len); in nsim_dev_trap_skb_build()
533 udph->len = htons(sizeof(struct udphdr) + data_len); in nsim_dev_trap_skb_build()
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_selftests.c63 struct udphdr *uhdr = NULL; in stmmac_test_get_udp_skb()
80 size += sizeof(struct udphdr); in stmmac_test_get_udp_skb()
256 struct udphdr *uhdr; in stmmac_test_loopback_validate()
299 uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in stmmac_test_loopback_validate()
843 struct udphdr *uhdr; in stmmac_test_vlan_validate()
878 uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in stmmac_test_vlan_validate()
/drivers/staging/gdm724x/
Dgdm_lte.c373 struct udphdr *udp = in gdm_lte_tx_nic_type()
389 struct udphdr *udp = in gdm_lte_tx_nic_type()
616 sizeof(struct udphdr) + in gdm_lte_netif_rx()
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c532 struct udphdr *udph = udp_hdr(skb); in otx2_sqe_add_ext()
536 sizeof(struct udphdr); in otx2_sqe_add_ext()
551 udph->len = htons(sizeof(struct udphdr)); in otx2_sqe_add_ext()
/drivers/staging/rtl8192e/
Drtllib_tx.c621 struct udphdr *udp; in rtllib_xmit_inter()
623 udp = (struct udphdr *)((u8 *)ip + in rtllib_xmit_inter()
/drivers/net/ethernet/sun/
Dsunvnet_common.c329 struct udphdr *pudp = udp_hdr(skb); in vnet_fullcsum_ipv4()
362 struct udphdr *pudp = udp_hdr(skb); in vnet_fullcsum_ipv6()
1241 hlen += sizeof(struct udphdr); in vnet_handle_offloads()
1304 curr->csum_offset = offsetof(struct udphdr, check); in vnet_handle_offloads()
/drivers/net/ethernet/huawei/hinic/
Dhinic_tx.c61 struct udphdr *udp;
246 *l4_len = sizeof(struct udphdr); in get_inner_l4_info()
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.h498 struct udphdr *udp;
/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c178 struct udphdr *udp; in i40e_add_del_fdir_udpv4()
192 udp = (struct udphdr *)(raw_packet + IP_HEADER_OFFSET in i40e_add_del_fdir_udpv4()
2915 struct udphdr *udp; in i40e_tso()
3074 struct udphdr *udp; in i40e_tx_enable_csum()
3206 offset |= (sizeof(struct udphdr) >> 2) << in i40e_tx_enable_csum()

123