/linux-6.12.1/include/linux/ |
D | virtio_net.h | 98 u32 off = __virtio16_to_cpu(little_endian, hdr->csum_offset); in virtio_net_hdr_to_skb() 169 if (skb->csum_offset != offsetof(struct udphdr, check)) in virtio_net_hdr_to_skb() 179 skb->csum_offset != offsetof(struct tcphdr, check)) in virtio_net_hdr_to_skb() 235 hdr->csum_offset = __cpu_to_virtio16(little_endian, in virtio_net_hdr_from_skb() 236 skb->csum_offset); in virtio_net_hdr_from_skb()
|
/linux-6.12.1/net/netfilter/ |
D | nft_payload.c | 783 __wsum fsum, __wsum tsum, int csum_offset) in nft_payload_csum_inet() argument 787 if (skb_copy_bits(skb, csum_offset, &sum, sizeof(sum)) < 0) in nft_payload_csum_inet() 791 if (skb_ensure_writable(skb, csum_offset + sizeof(sum)) || in nft_payload_csum_inet() 792 skb_store_bits(skb, csum_offset, &sum, sizeof(sum)) < 0) in nft_payload_csum_inet() 804 u8 csum_offset; member 860 int offset, csum_offset, vlan_hlen = 0; in nft_payload_set_eval() local 900 csum_offset = offset + priv->csum_offset; in nft_payload_set_eval() 914 nft_payload_csum_inet(skb, src, fsum, tsum, csum_offset)) in nft_payload_set_eval() 944 u32 csum_offset, csum_type = NFT_PAYLOAD_CSUM_NONE; in nft_payload_set_init() local 955 &csum_offset); in nft_payload_set_init() [all …]
|
/linux-6.12.1/fs/btrfs/ |
D | file-item.c | 212 u64 csum_offset = 0; in btrfs_lookup_csum() local 232 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum() 237 if (csum_offset == csums_in_item) { in btrfs_lookup_csum() 240 } else if (csum_offset > csums_in_item) { in btrfs_lookup_csum() 246 csum_offset * csum_size); in btrfs_lookup_csum() 1063 u64 csum_offset; in btrfs_csum_file_blocks() local 1127 csum_offset = (bytenr - found_key.offset) >> in btrfs_csum_file_blocks() 1148 csum_offset = (bytenr - found_key.offset) >> fs_info->sectorsize_bits; in btrfs_csum_file_blocks() 1152 csum_offset >= MAX_CSUM_ITEMS(fs_info, csum_size)) { in btrfs_csum_file_blocks() 1157 if (csum_offset == btrfs_item_size(leaf, path->slots[0]) / in btrfs_csum_file_blocks() [all …]
|
/linux-6.12.1/Documentation/networking/ |
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).
|
D | xsk-tx-metadata.rst | 51 should start and ``csum_offset`` specifies byte offset where the
|
/linux-6.12.1/include/net/ |
D | xdp_sock.h | 117 void (*tmo_request_checksum)(u16 csum_start, u16 csum_offset, void *priv); 172 meta->request.csum_offset, priv); in xsk_tx_metadata_request()
|
D | ip6_checksum.h | 62 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v6_send_check()
|
D | gre.h | 141 skb->csum_offset = sizeof(*greh); in gre_build_header()
|
/linux-6.12.1/drivers/net/ethernet/cisco/enic/ |
D | enic_res.h | 89 unsigned int csum_offset, unsigned int hdr_len, in enic_queue_wq_desc_csum_l4() argument 93 csum_offset, hdr_len, vlan_tag_insert, vlan_tag, in enic_queue_wq_desc_csum_l4()
|
/linux-6.12.1/lib/ |
D | checksum_kunit.c | 607 const int csum_offset = sizeof(struct in6_addr) + sizeof(struct in6_addr) + in test_csum_ipv6_magic() local 616 csum = *(__wsum *)(random_buf + i + csum_offset); in test_csum_ipv6_magic()
|
/linux-6.12.1/include/uapi/linux/ |
D | virtio_net.h | 147 __virtio16 csum_offset; member 197 __virtio16 csum_offset; /* Offset after that to place checksum */ member
|
D | if_xdp.h | 144 __u16 csum_offset; member
|
/linux-6.12.1/tools/include/uapi/linux/ |
D | if_xdp.h | 144 __u16 csum_offset; member
|
/linux-6.12.1/tools/testing/selftests/net/ |
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-6.12.1/drivers/net/ethernet/google/gve/ |
D | gve_tx.c | 502 u16 csum_offset, u8 ip_summed, bool is_gso, in gve_tx_fill_pkt_desc() argument 509 pkt_desc->pkt.l4_csum_offset = csum_offset >> 1; in gve_tx_fill_pkt_desc() 513 pkt_desc->pkt.l4_csum_offset = csum_offset >> 1; in gve_tx_fill_pkt_desc() 600 gve_tx_fill_pkt_desc(pkt_desc, skb->csum_offset, skb->ip_summed, in gve_tx_add_skb_copy() 682 gve_tx_fill_pkt_desc(pkt_desc, skb->csum_offset, skb->ip_summed, in gve_tx_add_skb_no_copy()
|
/linux-6.12.1/net/ipv6/ |
D | ip6_checksum.c | 133 skb->csum_offset = offsetof(struct udphdr, check); in udp6_set_csum()
|
/linux-6.12.1/net/ipv4/ |
D | udp_offload.c | 146 skb->csum_offset = offsetof(struct udphdr, check); in __skb_udp_tunnel_segment() 306 gso_skb->csum_offset = offsetof(struct udphdr, check); in __udp_gso_segment() 682 skb->csum_offset = offsetof(struct udphdr, check); in udp_gro_complete_segment()
|
D | gre_offload.c | 115 skb->csum_offset = sizeof(*greh); in gre_gso_segment()
|
/linux-6.12.1/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 190 val |= skb->csum_offset & MAP_CSUM_UL_OFFSET_MASK; in rmnet_map_ipv4_ul_csum_header() 225 val |= skb->csum_offset & MAP_CSUM_UL_OFFSET_MASK; in rmnet_map_ipv6_ul_csum_header()
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | xdp_hw_metadata.c | 392 meta->request.csum_offset = offsetof(struct udphdr, check); in ping_pong() 396 meta->request.csum_start, meta->request.csum_offset); in ping_pong()
|
/linux-6.12.1/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 1153 nskb->csum_offset = skb->csum_offset; in vnet_skb_shape() 1159 int offset = start + nskb->csum_offset; in vnet_skb_shape() 1303 curr->csum_offset = offsetof(struct tcphdr, check); in vnet_handle_offloads() 1305 curr->csum_offset = offsetof(struct udphdr, check); in vnet_handle_offloads()
|
/linux-6.12.1/tools/testing/selftests/net/lib/ |
D | csum.c | 434 vh.csum_offset = __builtin_offsetof(struct tcphdr, check); in send_packet() 437 vh.csum_offset = __builtin_offsetof(struct udphdr, check); in send_packet()
|
/linux-6.12.1/drivers/net/ethernet/pensando/ionic/ |
D | ionic_txrx.c | 382 desc->csum_offset = 0; in ionic_xdp_post_frame() 1577 desc->csum_offset = cpu_to_le16(skb->csum_offset); in ionic_tx_calc_csum() 1616 desc->csum_offset = 0; in ionic_tx_calc_no_csum()
|
/linux-6.12.1/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 219 nskb->csum_offset = offsetof(struct tcphdr, check); in nf_reject_ip_tcphdr_put()
|
/linux-6.12.1/net/core/ |
D | selftests.c | 158 skb->csum_offset = offsetof(struct tcphdr, check); in net_test_get_skb()
|