/drivers/infiniband/sw/rxe/ |
D | rxe_icrc.c | 16 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()
|
D | rxe_net.c | 155 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/ |
D | en_selftest.c | 99 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/ |
D | lag.c | 19 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/ |
D | tc_tun_mplsoudp.c | 15 return sizeof(struct udphdr) + MPLS_HLEN; in calc_hlen() 33 struct udphdr *udp = (struct udphdr *)(buf); in generate_ip_tun_hdr()
|
D | tc_tun_vxlan.c | 88 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()
|
D | tc_tun_geneve.c | 17 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()
|
D | tc_ct.c | 304 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/ |
D | receive.c | 57 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()
|
D | messages.h | 122 sizeof(struct udphdr) + NET_SKB_PAD)
|
/drivers/net/phy/mscc/ |
D | mscc_ptp.c | 363 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/ |
D | cxgb4_ptp.c | 60 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/ |
D | gtp.c | 214 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()
|
D | bareudp.c | 23 #define BAREUDP_BASE_HLEN sizeof(struct udphdr) 25 sizeof(struct udphdr)) 27 sizeof(struct udphdr))
|
/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 29 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/ |
D | en_accel.h | 103 int payload_len = skb_shinfo(skb)->gso_size + sizeof(struct udphdr); in mlx5e_udp_gso_handle_tx_skb()
|
/drivers/net/netdevsim/ |
D | dev.c | 500 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/ |
D | stmmac_selftests.c | 63 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/ |
D | gdm_lte.c | 373 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/ |
D | otx2_txrx.c | 532 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/ |
D | rtllib_tx.c | 621 struct udphdr *udp; in rtllib_xmit_inter() 623 udp = (struct udphdr *)((u8 *)ip + in rtllib_xmit_inter()
|
/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 329 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/ |
D | hinic_tx.c | 61 struct udphdr *udp; 246 *l4_len = sizeof(struct udphdr); in get_inner_l4_info()
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.h | 498 struct udphdr *udp;
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 178 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()
|