Searched refs:csum_sub (Results 1 – 18 of 18) sorted by relevance
/linux-6.1.9/include/net/ |
D | checksum.h | 65 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()
|
D | inet_ecn.h | 145 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/ |
D | utils.c | 76 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()
|
D | nft_payload.c | 557 *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()
|
D | xt_TCPMSS.c | 242 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)oldlen), in tcpmss_tg6()
|
/linux-6.1.9/net/core/ |
D | utils.c | 431 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/ |
D | ip6t_NPT.c | 35 npt->adjustment = ~csum_fold(csum_sub(src_sum, dst_sum)); in ip6t_npt_checkentry()
|
D | nf_conntrack_reasm.c | 194 skb->csum = csum_sub(skb->csum, in nf_ct_frag6_queue()
|
/linux-6.1.9/net/dsa/ |
D | tag_dsa.c | 310 c = csum_sub(c, csum_partial(dsa_header + 2, 2, 0)); in dsa_rcv_ll()
|
/linux-6.1.9/net/ipv6/ |
D | reassembly.c | 137 skb->csum = csum_sub(skb->csum, in ip6_frag_queue()
|
D | raw.c | 572 tmp_csum = csum_sub(tmp_csum, csum_unfold(csum)); in rawv6_push_pending_frames()
|
D | ip6_output.c | 1726 skb_prev->csum = csum_sub(skb_prev->csum, in __ip6_append_data()
|
/linux-6.1.9/net/ipv4/ |
D | udp_offload.c | 45 partial = csum_sub(csum_unfold(uh->check), partial); in __skb_udp_tunnel_segment()
|
D | ip_output.c | 1154 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()
|
D | ip_sockglue.c | 125 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/ |
D | en_rx.c | 592 skb->csum = csum_sub(hw_checksum, csum_pseudo_header); in get_fixed_ipv4_csum()
|
/linux-6.1.9/drivers/net/ethernet/myricom/myri10ge/ |
D | myri10ge.c | 1291 skb->csum = csum_sub(skb->csum, vsum); in myri10ge_vlan_rx()
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 3335 tsum = ~csum_fold(csum_sub((__force __wsum) csum, in bnx2x_csum_fix()
|