Home
last modified time | relevance | path

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

/linux-6.1.9/include/net/
Dchecksum.h65 static __always_inline __wsum csum_sub(__wsum csum, __wsum addend) in csum_sub() function
131 __wsum tmp = csum_sub(~csum_unfold(*sum), (__force __wsum)from); in csum_replace4()
149 *csum = csum_add(csum_sub(*csum, old), new); in csum_replace()
176 csum = csum_sub(csum, csum_partial(ptr, start, 0)); in remcsum_adjust()
179 delta = csum_sub((__force __wsum)csum_fold(csum), in remcsum_adjust()
188 *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.1.9/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.c557 *sum = csum_fold(csum_add(csum_sub(~csum_unfold(*sum), fsum), tsum)); in nft_csum_replace()
637 skb->csum = ~csum_add(csum_sub(~(skb->csum), fsum), in nft_payload_l4csum_update()
641 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.1.9/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.1.9/net/ipv6/netfilter/
Dip6t_NPT.c35 npt->adjustment = ~csum_fold(csum_sub(src_sum, dst_sum)); in ip6t_npt_checkentry()
Dnf_conntrack_reasm.c194 skb->csum = csum_sub(skb->csum, in nf_ct_frag6_queue()
/linux-6.1.9/net/dsa/
Dtag_dsa.c310 c = csum_sub(c, csum_partial(dsa_header + 2, 2, 0)); in dsa_rcv_ll()
/linux-6.1.9/net/ipv6/
Dreassembly.c137 skb->csum = csum_sub(skb->csum, in ip6_frag_queue()
Draw.c572 tmp_csum = csum_sub(tmp_csum, csum_unfold(csum)); in rawv6_push_pending_frames()
Dip6_output.c1726 skb_prev->csum = csum_sub(skb_prev->csum, in __ip6_append_data()
/linux-6.1.9/net/ipv4/
Dudp_offload.c45 partial = csum_sub(csum_unfold(uh->check), partial); in __skb_udp_tunnel_segment()
Dip_output.c1154 skb_prev->csum = csum_sub(skb_prev->csum, in __ip_append_data()
1437 skb_prev->csum = csum_sub(skb_prev->csum, in ip_append_page()
Dip_sockglue.c125 csum = csum_sub(csum, skb_checksum(skb, tend_off, offset, 0)); in ip_cmsg_recv_checksum()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c592 skb->csum = csum_sub(hw_checksum, csum_pseudo_header); in get_fixed_ipv4_csum()
/linux-6.1.9/drivers/net/ethernet/myricom/myri10ge/
Dmyri10ge.c1291 skb->csum = csum_sub(skb->csum, vsum); in myri10ge_vlan_rx()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3335 tsum = ~csum_fold(csum_sub((__force __wsum) csum, in bnx2x_csum_fix()