/linux/net/netfilter/ |
A D | nft_payload.c | 622 __wsum fsum, __wsum tsum, int csum_offset) in nft_payload_csum_inet() argument 626 if (skb_copy_bits(skb, csum_offset, &sum, sizeof(sum)) < 0) in nft_payload_csum_inet() 630 if (skb_ensure_writable(skb, csum_offset + sizeof(sum)) || in nft_payload_csum_inet() 631 skb_store_bits(skb, csum_offset, &sum, sizeof(sum)) < 0) in nft_payload_csum_inet() 644 int offset, csum_offset; in nft_payload_set_eval() local 670 csum_offset = offset + priv->csum_offset; in nft_payload_set_eval() 681 nft_payload_csum_inet(skb, src, fsum, tsum, csum_offset)) in nft_payload_set_eval() 719 priv->csum_offset = in nft_payload_set_init() 739 if (priv->csum_offset != offsetof(struct sctphdr, checksum)) in nft_payload_set_init() 760 htonl(priv->csum_offset)) || in nft_payload_set_dump()
|
A D | nf_nat_proto.c | 509 skb->csum_offset = (void *)check - data; in nf_nat_ipv4_csum_recalc() 529 skb->csum_offset = (void *)check - data; in nf_nat_ipv6_csum_recalc()
|
A D | nf_synproxy_core.c | 450 nskb->csum_offset = offsetof(struct tcphdr, check); in synproxy_send_tcp() 848 nskb->csum_offset = offsetof(struct tcphdr, check); in synproxy_send_tcp_ipv6()
|
/linux/fs/btrfs/ |
A D | file-item.c | 189 u64 csum_offset = 0; in btrfs_lookup_csum() local 209 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum() 214 if (csum_offset == csums_in_item) { in btrfs_lookup_csum() 217 } else if (csum_offset > csums_in_item) { in btrfs_lookup_csum() 223 csum_offset * csum_size); in btrfs_lookup_csum() 979 u64 csum_offset; in btrfs_csum_file_blocks() local 1043 csum_offset = (bytenr - found_key.offset) >> in btrfs_csum_file_blocks() 1068 csum_offset >= MAX_CSUM_ITEMS(fs_info, csum_size)) { in btrfs_csum_file_blocks() 1124 diff = (csum_offset + extend_nr) * csum_size; in btrfs_csum_file_blocks() 1140 csum_offset = 0; in btrfs_csum_file_blocks() [all …]
|
/linux/include/linux/ |
A D | virtio_net.h | 87 u32 off = __virtio16_to_cpu(little_endian, hdr->csum_offset); in virtio_net_hdr_to_skb() 196 hdr->csum_offset = __cpu_to_virtio16(little_endian, in virtio_net_hdr_from_skb() 197 skb->csum_offset); in virtio_net_hdr_from_skb()
|
/linux/Documentation/networking/ |
A D | checksum-offloads.rst | 33 checksum defined by the sk_buff fields skb->csum_start and skb->csum_offset. 36 result at (csum_start + csum_offset). 38 Because csum_offset cannot be negative, this ensures that the previous value of 49 skb->csum_start and skb->csum_offset as described above, and setting 64 csum_offset given in the SKB; if it tries to deduce these itself in hardware 101 at (csum_start + csum_offset).
|
/linux/include/uapi/linux/ |
A D | virtio_net.h | 140 __virtio16 csum_offset; member 190 __virtio16 csum_offset; /* Offset after that to place checksum */ member
|
/linux/drivers/net/ethernet/cisco/enic/ |
A D | enic_res.h | 102 unsigned int csum_offset, unsigned int hdr_len, in enic_queue_wq_desc_csum_l4() argument 106 csum_offset, hdr_len, vlan_tag_insert, vlan_tag, in enic_queue_wq_desc_csum_l4()
|
/linux/tools/testing/selftests/net/ |
A D | psock_snd.c | 85 vh->csum_offset = __builtin_offsetof(struct udphdr, check); in build_vnet_header() 90 vh->csum_offset - 1; in build_vnet_header()
|
/linux/include/net/ |
A D | ip6_checksum.h | 71 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v6_send_check()
|
A D | gre.h | 143 skb->csum_offset = sizeof(*greh); in gre_build_header()
|
/linux/drivers/net/ethernet/qualcomm/rmnet/ |
A D | rmnet_map_data.c | 189 val |= skb->csum_offset & MAP_CSUM_UL_OFFSET_MASK; in rmnet_map_ipv4_ul_csum_header() 224 val |= skb->csum_offset & MAP_CSUM_UL_OFFSET_MASK; in rmnet_map_ipv6_ul_csum_header()
|
/linux/net/ipv6/ |
A D | ip6_checksum.c | 133 skb->csum_offset = offsetof(struct udphdr, check); in udp6_set_csum()
|
/linux/include/net/netfilter/ |
A D | nf_tables_core.h | 74 u8 csum_offset; member
|
/linux/drivers/net/ethernet/sun/ |
A D | sunvnet_common.c | 1152 nskb->csum_offset = skb->csum_offset; in vnet_skb_shape() 1158 int offset = start + nskb->csum_offset; in vnet_skb_shape() 1302 curr->csum_offset = offsetof(struct tcphdr, check); in vnet_handle_offloads() 1304 curr->csum_offset = offsetof(struct udphdr, check); in vnet_handle_offloads()
|
/linux/net/ipv4/ |
A D | gre_offload.c | 113 skb->csum_offset = sizeof(*greh); in gre_gso_segment()
|
A D | udp_offload.c | 144 skb->csum_offset = offsetof(struct udphdr, check); in __skb_udp_tunnel_segment() 622 skb->csum_offset = offsetof(struct udphdr, check); in udp_gro_complete_segment()
|
A D | tcp_offload.c | 293 skb->csum_offset = offsetof(struct tcphdr, check); in tcp_gro_complete()
|
/linux/net/ipv4/netfilter/ |
A D | nf_reject_ipv4.c | 217 nskb->csum_offset = offsetof(struct tcphdr, check); in nf_reject_ip_tcphdr_put()
|
/linux/drivers/net/ethernet/google/gve/ |
A D | gve_tx.c | 381 pkt_desc->pkt.l4_csum_offset = skb->csum_offset >> 1; in gve_tx_fill_pkt_desc() 385 pkt_desc->pkt.l4_csum_offset = skb->csum_offset >> 1; in gve_tx_fill_pkt_desc()
|
/linux/drivers/net/ethernet/pensando/ionic/ |
A D | ionic_txrx.c | 1035 desc->csum_offset = cpu_to_le16(skb->csum_offset); in ionic_tx_calc_csum() 1074 desc->csum_offset = 0; in ionic_tx_calc_no_csum()
|
/linux/drivers/net/ethernet/sfc/ |
A D | ef100_tx.c | 152 skb->csum_offset >> 1); in ef100_set_tx_csum_partial()
|
/linux/net/core/ |
A D | selftests.c | 158 skb->csum_offset = offsetof(struct tcphdr, check); in net_test_get_skb()
|
/linux/net/tls/ |
A D | tls_device_fallback.c | 182 skb->csum_offset = offsetof(struct tcphdr, check); in update_chksum()
|
/linux/drivers/net/usb/ |
A D | smsc95xx.c | 1867 u16 high_16 = low_16 + skb->csum_offset; in smsc95xx_calc_csum_preamble() 1885 return skb->csum_offset < (len - (4 + 1)); in smsc95xx_can_tx_checksum() 1919 + skb->csum_offset)) = csum_fold(calc); in smsc95xx_tx_fixup()
|