Home
last modified time | relevance | path

Searched refs:csum_start (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.3-rc2/Documentation/networking/
A Dchecksum-offloads.rst33 checksum defined by the sk_buff fields skb->csum_start and skb->csum_offset.
35 'IP-style' checksum) from csum_start to the end of the packet, and fill in the
36 result at (csum_start + csum_offset).
49 skb->csum_start and skb->csum_offset as described above, and setting
63 which only advertises NETIF_F_IP[V6]_CSUM must still obey the csum_start and
97 from csum_start to the end of the packet will be equal to the complement of
100 summing when we get to csum_start, then add the complement of the 16-bit word
101 at (csum_start + csum_offset).
/linux-6.3-rc2/include/uapi/linux/
A Dvirtio_net.h143 __virtio16 csum_start; member
193 __virtio16 csum_start; /* Position to start checksumming from */ member
/linux-6.3-rc2/include/linux/
A Dvirtio_net.h93 u32 start = __virtio16_to_cpu(little_endian, hdr->csum_start); in virtio_net_hdr_to_skb()
203 hdr->csum_start = __cpu_to_virtio16(little_endian, in virtio_net_hdr_from_skb()
A Dskbuff.h1001 __u16 csum_start;
2935 return skb->csum_start - skb_headroom(skb); in skb_checksum_start_offset()
2940 return skb->head + skb->csum_start; in skb_checksum_start()
4848 __u16 csum_start; member
4894 unsigned char *csum_start = skb_transport_header(skb); in gso_make_checksum() local
4895 int plen = (skb->head + SKB_GSO_CB(skb)->csum_start) - csum_start; in gso_make_checksum()
4899 SKB_GSO_CB(skb)->csum_start = csum_start - skb->head; in gso_make_checksum()
4901 return csum_fold(csum_partial(csum_start, plen, partial)); in gso_make_checksum()
5018 unsigned char *csum_start = skb_checksum_start(skb); in lco_csum() local
5023 partial = ~csum_unfold(*(__force __sum16 *)(csum_start + in lco_csum()
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/
A Dcsum.c421 vh.csum_start = sizeof(struct ethhdr) + sizeof(struct ipv6hdr); in send_packet()
424 vh.csum_start = sizeof(struct ethhdr) + sizeof(struct iphdr); in send_packet()
429 vh.csum_start += ENC_HEADER_LEN; in send_packet()
433 vh.hdr_len = vh.csum_start + sizeof(struct tcphdr); in send_packet()
436 vh.hdr_len = vh.csum_start + sizeof(struct udphdr); in send_packet()
A Dpsock_snd.c84 vh->csum_start = ETH_HLEN + sizeof(struct iphdr); in build_vnet_header()
89 vh->csum_start += sizeof(struct udphdr) + cfg_payload_len - in build_vnet_header()
A Dtxtimestamp.c418 const void *csum_start = udph; in get_udp_csum() local
424 csum_start -= alen * 2; in get_udp_csum()
427 return get_ip_csum(csum_start, csum_len >> 1, pseudo_sum); in get_udp_csum()
/linux-6.3-rc2/drivers/net/ethernet/sfc/
A Def100_tx.c138 int csum_start; in ef100_set_tx_csum_partial() local
146 csum_start = skb_checksum_start_offset(skb); in ef100_set_tx_csum_partial()
150 csum_start >> 1, in ef100_set_tx_csum_partial()
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Ddecap_sanity.c28 return skb->csum_start - skb_headroom(skb); in skb_checksum_start_offset()
/linux-6.3-rc2/include/net/
A Dip6_checksum.h61 skb->csum_start = skb_transport_header(skb) - skb->head; in __tcp_v6_send_check()
A Dgre.h142 skb->csum_start = skb_transport_header(skb) - skb->head; in gre_build_header()
/linux-6.3-rc2/net/sctp/
A Doffload.c34 SKB_GSO_CB(skb)->csum_start = skb_headroom(skb) + skb->len; in sctp_gso_make_checksum()
/linux-6.3-rc2/fs/btrfs/
A Dfile-item.c292 u64 csum_start; in search_csum_tree() local
305 csum_start = key.offset; in search_csum_tree()
308 if (in_range(disk_bytenr, csum_start, csum_len)) in search_csum_tree()
323 csum_start = key.offset; in search_csum_tree()
325 ASSERT(in_range(disk_bytenr, csum_start, csum_len)); in search_csum_tree()
328 ret = (min(csum_start + csum_len, disk_bytenr + len) - in search_csum_tree()
/linux-6.3-rc2/net/ipv4/
A Dfou_core.c989 u16 csum_start = skb_checksum_start_offset(skb); in __gue_build_header() local
992 if (csum_start < hdrlen) in __gue_build_header()
995 csum_start -= hdrlen; in __gue_build_header()
996 pd[0] = htons(csum_start); in __gue_build_header()
997 pd[1] = htons(csum_start + skb->csum_offset); in __gue_build_header()
A Dgre_offload.c113 skb->csum_start = skb_transport_header(skb) - skb->head; in gre_gso_segment()
A Dudp_offload.c144 skb->csum_start = skb_transport_header(skb) - skb->head; in __skb_udp_tunnel_segment()
649 skb->csum_start = (unsigned char *)uh - skb->head; in udp_gro_complete_segment()
A Dtcp_offload.c303 skb->csum_start = (unsigned char *)th - skb->head; in tcp_gro_complete()
/linux-6.3-rc2/net/ipv6/
A Dip6_checksum.c132 skb->csum_start = skb_transport_header(skb) - skb->head; in udp6_set_csum()
/linux-6.3-rc2/drivers/net/wireless/ath/ath6kl/
A Dtxrx.c369 u8 csum_start = 0, csum_dest = 0, csum = skb->ip_summed; in ath6kl_data_tx() local
396 csum_start = skb->csum_start - in ath6kl_data_tx()
399 csum_dest = skb->csum_offset + csum_start; in ath6kl_data_tx()
415 meta_v2.csum_start = csum_start; in ath6kl_data_tx()
/linux-6.3-rc2/net/netfilter/ipvs/
A Dip_vs_xmit.c1055 u16 csum_start = skb_checksum_start_offset(skb); in ipvs_gue_encap() local
1062 if (csum_start < hdrlen) in ipvs_gue_encap()
1065 csum_start -= hdrlen; in ipvs_gue_encap()
1067 pd[0] = htons(csum_start); in ipvs_gue_encap()
1068 pd[1] = htons(csum_start + skb->csum_offset); in ipvs_gue_encap()
/linux-6.3-rc2/net/hsr/
A Dhsr_forward.c136 skb->csum_start -= HSR_HLEN; in create_stripped_skb_hsr()
306 skb->csum_start += HSR_HLEN; in hsr_create_tagged_frame()
/linux-6.3-rc2/drivers/net/can/
A Dvxcan.c67 skb->csum_start = 0; in vxcan_xmit()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dipsec_rxtx.c139 (skb->csum_start + skb->head - skb->data) / 2; in mlx5e_ipsec_set_swp()
/linux-6.3-rc2/net/ipv4/netfilter/
A Dnf_reject_ipv4.c218 nskb->csum_start = (unsigned char *)tcph - nskb->head; in nf_reject_ip_tcphdr_put()
/linux-6.3-rc2/net/bridge/
A Dbr_multicast.c938 void *csum_start = NULL; in br_ip4_multicast_alloc_query() local
1020 csum_start = (void *)ih; in br_ip4_multicast_alloc_query()
1036 csum_start = (void *)ihv3; in br_ip4_multicast_alloc_query()
1058 if (WARN_ON(!csum || !csum_start)) { in br_ip4_multicast_alloc_query()
1063 *csum = ip_compute_csum(csum_start, igmp_hdr_size); in br_ip4_multicast_alloc_query()
1086 void *csum_start = NULL; in br_ip6_multicast_alloc_query() local
1183 csum_start = (void *)mldq; in br_ip6_multicast_alloc_query()
1199 csum_start = (void *)mld2q; in br_ip6_multicast_alloc_query()
1221 if (WARN_ON(!csum || !csum_start)) { in br_ip6_multicast_alloc_query()
1228 csum_partial(csum_start, mld_hdr_size, 0)); in br_ip6_multicast_alloc_query()

Completed in 58 milliseconds

123