Home
last modified time | relevance | path

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

123

/linux-6.6.21/include/net/
Dgso.h21 __u16 csum_start; member
54 SKB_GSO_CB(skb)->csum_start = skb_checksum_start(skb) - skb->head; in gso_reset_checksum()
67 unsigned char *csum_start = skb_transport_header(skb); in gso_make_checksum() local
68 int plen = (skb->head + SKB_GSO_CB(skb)->csum_start) - csum_start; in gso_make_checksum()
72 SKB_GSO_CB(skb)->csum_start = csum_start - skb->head; in gso_make_checksum()
74 return csum_fold(csum_partial(csum_start, plen, partial)); in gso_make_checksum()
Dip6_checksum.h61 skb->csum_start = skb_transport_header(skb) - skb->head; in __tcp_v6_send_check()
Dgre.h142 skb->csum_start = skb_transport_header(skb) - skb->head; in gre_build_header()
/linux-6.6.21/Documentation/networking/
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.6.21/include/uapi/linux/
Dvirtio_net.h145 __virtio16 csum_start; member
195 __virtio16 csum_start; /* Position to start checksumming from */ member
/linux-6.6.21/include/linux/
Dvirtio_net.h97 u32 start = __virtio16_to_cpu(little_endian, hdr->csum_start); in virtio_net_hdr_to_skb()
225 hdr->csum_start = __cpu_to_virtio16(little_endian, in virtio_net_hdr_from_skb()
Dskbuff.h1002 __u16 csum_start;
2961 return skb->csum_start - skb_headroom(skb); in skb_checksum_start_offset()
2966 return skb->head + skb->csum_start; in skb_checksum_start()
4562 skb->csum_start = ((unsigned char *)ptr + start) - skb->head; in skb_remcsum_adjust_partial()
4979 unsigned char *csum_start = skb_checksum_start(skb); in lco_csum() local
4984 partial = ~csum_unfold(*(__force __sum16 *)(csum_start + in lco_csum()
4990 return csum_partial(l4_hdr, csum_start - l4_hdr, partial); in lco_csum()
/linux-6.6.21/tools/testing/selftests/net/
Dcsum.c423 vh.csum_start = sizeof(struct ethhdr) + sizeof(struct ipv6hdr); in send_packet()
426 vh.csum_start = sizeof(struct ethhdr) + sizeof(struct iphdr); in send_packet()
431 vh.csum_start += ENC_HEADER_LEN; in send_packet()
435 vh.hdr_len = vh.csum_start + sizeof(struct tcphdr); in send_packet()
438 vh.hdr_len = vh.csum_start + sizeof(struct udphdr); in send_packet()
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()
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.6.21/drivers/net/ethernet/sfc/
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.6.21/tools/testing/selftests/bpf/progs/
Ddecap_sanity.c28 return skb->csum_start - skb_headroom(skb); in skb_checksum_start_offset()
/linux-6.6.21/net/sctp/
Doffload.c35 SKB_GSO_CB(skb)->csum_start = skb_headroom(skb) + skb->len; in sctp_gso_make_checksum()
/linux-6.6.21/fs/btrfs/
Dfile-item.c293 u64 csum_start; in search_csum_tree() local
306 csum_start = key.offset; in search_csum_tree()
309 if (in_range(disk_bytenr, csum_start, csum_len)) in search_csum_tree()
324 csum_start = key.offset; in search_csum_tree()
326 ASSERT(in_range(disk_bytenr, csum_start, csum_len)); in search_csum_tree()
329 ret = (min(csum_start + csum_len, disk_bytenr + len) - in search_csum_tree()
/linux-6.6.21/net/ipv4/
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()
Dgre_offload.c114 skb->csum_start = skb_transport_header(skb) - skb->head; in gre_gso_segment()
Dudp_offload.c145 skb->csum_start = skb_transport_header(skb) - skb->head; in __skb_udp_tunnel_segment()
659 skb->csum_start = (unsigned char *)uh - skb->head; in udp_gro_complete_segment()
Dtcp_offload.c303 skb->csum_start = (unsigned char *)th - skb->head; in tcp_gro_complete()
/linux-6.6.21/net/ipv6/
Dip6_checksum.c132 skb->csum_start = skb_transport_header(skb) - skb->head; in udp6_set_csum()
/linux-6.6.21/drivers/net/wireless/ath/ath6kl/
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.6.21/net/netfilter/ipvs/
Dip_vs_xmit.c1039 u16 csum_start = skb_checksum_start_offset(skb); in ipvs_gue_encap() local
1046 if (csum_start < hdrlen) in ipvs_gue_encap()
1049 csum_start -= hdrlen; in ipvs_gue_encap()
1051 pd[0] = htons(csum_start); in ipvs_gue_encap()
1052 pd[1] = htons(csum_start + skb->csum_offset); in ipvs_gue_encap()
/linux-6.6.21/net/hsr/
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.6.21/drivers/net/can/
Dvxcan.c67 skb->csum_start = 0; in vxcan_xmit()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c142 (skb->csum_start + skb->head - skb->data) / 2; in mlx5e_ipsec_set_swp()
/linux-6.6.21/net/ipv4/netfilter/
Dnf_reject_ipv4.c218 nskb->csum_start = (unsigned char *)tcph - nskb->head; in nf_reject_ip_tcphdr_put()

123