Home
last modified time | relevance | path

Searched refs:csum_unfold (Results 1 – 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/net/core/
Dutils.c435 *sum = ~csum_fold(csum_add(csum_sub(csum_unfold(*sum), in inet_proto_csum_replace4()
468 ~csum_unfold(*sum))); in inet_proto_csum_replace16()
471 csum_unfold(*sum))); in inet_proto_csum_replace16()
479 *sum = csum_fold(csum_add(diff, ~csum_unfold(*sum))); in inet_proto_csum_replace_by_diff()
483 *sum = ~csum_fold(csum_add(diff, csum_unfold(*sum))); in inet_proto_csum_replace_by_diff()
/kernel/linux/linux-5.10/include/net/
Dip6_checksum.h41 return ~csum_unfold(csum_ipv6_magic(&ipv6_hdr(skb)->saddr, in ip6_compute_pseudo()
50 return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr, in ip6_gro_compute_pseudo()
Dchecksum.h107 static __always_inline __wsum csum_unfold(__sum16 n) in csum_unfold() function
122 *sum = csum_fold(csum_add(diff, ~csum_unfold(*sum))); in csum_replace_by_diff()
127 __wsum tmp = csum_sub(~csum_unfold(*sum), (__force __wsum)from); in csum_replace4()
/kernel/linux/linux-5.10/net/ipv6/ila/
Dila_common.c53 *adjust = ~csum_fold(csum_add(diff, csum_unfold(*adjust))); in ila_csum_do_neutral_fmt()
71 *adjust = ~csum_fold(csum_add(diff, csum_unfold(*adjust))); in ila_csum_do_neutral_nofmt()
/kernel/linux/linux-5.10/net/netfilter/ipvs/
Dip_vs_proto_udp.c103 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update()
109 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update()
125 csum_unfold(uhdr->check)))); in udp_partial_csum_update()
131 csum_unfold(uhdr->check)))); in udp_partial_csum_update()
Dip_vs_proto_tcp.c115 ~csum_unfold(tcph->check)))); in tcp_fast_csum_update()
121 ~csum_unfold(tcph->check)))); in tcp_fast_csum_update()
136 csum_unfold(tcph->check)))); in tcp_partial_csum_update()
142 csum_unfold(tcph->check)))); in tcp_partial_csum_update()
/kernel/linux/linux-5.10/net/ipv6/netfilter/
Dip6t_NPT.c71 sum = ~csum_fold(csum_add(csum_unfold((__force __sum16)addr->s6_addr16[idx]), in ip6t_npt_map_pfx()
72 csum_unfold(npt->adjustment))); in ip6t_npt_map_pfx()
/kernel/linux/linux-5.10/net/netfilter/
Dutils.c84 skb->csum = ~csum_unfold( in nf_ip6_checksum()
112 skb->csum = ~csum_unfold(csum_ipv6_magic(&ip6h->saddr, in nf_ip6_checksum_partial()
Dnft_payload.c485 *sum = csum_fold(csum_add(csum_sub(~csum_unfold(*sum), fsum), tsum)); in nft_csum_replace()
569 sum = ~csum_fold(csum_add(csum_sub(csum_unfold(sum), fsum), in nft_payload_l4csum_update()
/kernel/linux/linux-5.10/net/ipv4/netfilter/
Dnf_nat_snmp_basic_main.c92 ~csum_unfold(*ctx->check))); in fast_csum()
/kernel/linux/linux-5.10/drivers/staging/gdm724x/
Dgdm_lte.c201 sum = csum_add(sum, csum_unfold((__force __sum16)pa)); in icmp6_checksum()
206 sum = csum_add(sum, csum_unfold((__force __sum16)*w++)); in icmp6_checksum()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c819 csum_unfold((__force __sum16)cqe->check_sum)); in mlx5e_lro_update_hdr()
836 csum_unfold((__force __sum16)cqe->check_sum)); in mlx5e_lro_update_hdr()
1009 skb->csum = csum_unfold((__force __sum16)cqe->check_sum); in mlx5e_handle_csum()
1669 skb->csum = csum_unfold((__force __sum16)cqe->check_sum); in mlx5i_complete_rx_cqe()
/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/
Dgve_rx.c370 skb->csum = csum_unfold(rx_desc->csum); in gve_rx()
/kernel/linux/linux-5.10/net/ipv6/
Draw.c439 skb->csum = ~csum_unfold(csum_ipv6_magic(&ipv6_hdr(skb)->saddr, in rawv6_rcv()
606 tmp_csum = csum_sub(tmp_csum, csum_unfold(csum)); in rawv6_push_pending_frames()
/kernel/linux/linux-5.10/net/ipv4/
Dudp_offload.c44 partial = csum_sub(csum_unfold(uh->check), partial); in __skb_udp_tunnel_segment()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c643 hw_checksum = csum_unfold((__force __sum16)cqe->checksum); in check_csum()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Drxmq.c460 skb->csum = csum_unfold(~(__force __sum16)hwsum); in iwl_mvm_rx_csum()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/
Denetc.c574 skb->csum = csum_unfold((__force __sum16)~htons(inet_csum)); in enetc_get_offloads()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1659 skb->csum = csum_unfold(c); in t4vf_ethrx_handler()
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
Dcassini.c2116 csum_unfold(csum))); in cas_rx_process_pkt()
2122 skb->csum = csum_unfold(~csum); in cas_rx_process_pkt()
Dsungem.c850 skb->csum = csum_unfold(csum); in gem_rx()
Dsunhme.c2078 skb->csum = csum_unfold(~(__force __sum16)htons(csum)); in happy_meal_rx()
/kernel/linux/linux-5.10/drivers/net/ethernet/renesas/
Dravb_main.c527 skb->csum = csum_unfold((__force __sum16)get_unaligned_le16(hw_csum)); in ravb_rx_csum()
Dsh_eth.c1578 skb->csum = csum_unfold((__force __sum16)get_unaligned_le16(hw_csum)); in sh_eth_rx_csum()
/kernel/linux/linux-5.10/include/linux/
Dskbuff.h4588 partial = ~csum_unfold(*(__force __sum16 *)(csum_start + in lco_csum()

12