Home
last modified time | relevance | path

Searched refs:csum_sub (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/include/net/
Dchecksum.h67 static __always_inline __wsum csum_sub(__wsum csum, __wsum addend) in csum_sub() function
133 __wsum tmp = csum_sub(~csum_unfold(*sum), (__force __wsum)from); in csum_replace4()
151 *csum = csum_add(csum_sub(*csum, old), new); in csum_replace()
178 csum = csum_sub(csum, csum_partial(ptr, start, 0)); in remcsum_adjust()
181 delta = csum_sub((__force __wsum)csum_fold(csum), in remcsum_adjust()
190 *psum = csum_fold(csum_sub(delta, (__force __wsum)*psum)); in remcsum_unadjust()
Dinet_ecn.h145 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)from), in IP6_ECN_set_ce()
161 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)from), in IP6_ECN_set_ect1()
/linux-6.6.21/net/netfilter/
Dutils.c76 csum_sub(skb->csum, in nf_ip6_checksum()
88 csum_sub(0, in nf_ip6_checksum()
116 csum_sub(0, hsum))); in nf_ip6_checksum_partial()
Dnft_payload.c692 *sum = csum_fold(csum_add(csum_sub(~csum_unfold(*sum), fsum), tsum)); in nft_csum_replace()
772 skb->csum = ~csum_add(csum_sub(~(skb->csum), fsum), in nft_payload_l4csum_update()
776 sum = ~csum_fold(csum_add(csum_sub(csum_unfold(sum), fsum), in nft_payload_l4csum_update()
Dxt_TCPMSS.c242 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)oldlen), in tcpmss_tg6()
/linux-6.6.21/net/core/
Dutils.c431 skb->csum = ~csum_add(csum_sub(~(skb->csum), in inet_proto_csum_replace4()
435 *sum = ~csum_fold(csum_add(csum_sub(csum_unfold(*sum), in inet_proto_csum_replace4()
481 skb->csum = ~csum_sub(diff, skb->csum); in inet_proto_csum_replace_by_diff()
/linux-6.6.21/net/ipv6/netfilter/
Dip6t_NPT.c35 npt->adjustment = ~csum_fold(csum_sub(src_sum, dst_sum)); in ip6t_npt_checkentry()
Dnf_conntrack_reasm.c195 skb->csum = csum_sub(skb->csum, in nf_ct_frag6_queue()
/linux-6.6.21/net/dsa/
Dtag_dsa.c313 c = csum_sub(c, csum_partial(dsa_header + 2, 2, 0)); in dsa_rcv_ll()
/linux-6.6.21/net/ipv6/
Dreassembly.c141 skb->csum = csum_sub(skb->csum, in ip6_frag_queue()
Draw.c570 tmp_csum = csum_sub(tmp_csum, csum_unfold(csum)); in rawv6_push_pending_frames()
Dip6_output.c1744 skb_prev->csum = csum_sub(skb_prev->csum, in __ip6_append_data()
/linux-6.6.21/net/ipv4/
Dudp_offload.c46 partial = csum_sub(csum_unfold(uh->check), partial); in __skb_udp_tunnel_segment()
Dip_sockglue.c125 csum = csum_sub(csum, skb_checksum(skb, tend_off, offset, 0)); in ip_cmsg_recv_checksum()
Dip_output.c1153 skb_prev->csum = csum_sub(skb_prev->csum, in __ip_append_data()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c592 skb->csum = csum_sub(hw_checksum, csum_pseudo_header); in get_fixed_ipv4_csum()
/linux-6.6.21/drivers/net/ethernet/myricom/myri10ge/
Dmyri10ge.c1291 skb->csum = csum_sub(skb->csum, vsum); in myri10ge_vlan_rx()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3351 tsum = ~csum_fold(csum_sub((__force __wsum) csum, in bnx2x_csum_fix()