Searched refs:csum_sub (Results 1 – 18 of 18) sorted by relevance
/linux-6.6.21/include/net/ |
D | checksum.h | 67 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()
|
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.6.21/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 | 692 *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()
|
D | xt_TCPMSS.c | 242 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)oldlen), in tcpmss_tg6()
|
/linux-6.6.21/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.6.21/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 | 195 skb->csum = csum_sub(skb->csum, in nf_ct_frag6_queue()
|
/linux-6.6.21/net/dsa/ |
D | tag_dsa.c | 313 c = csum_sub(c, csum_partial(dsa_header + 2, 2, 0)); in dsa_rcv_ll()
|
/linux-6.6.21/net/ipv6/ |
D | reassembly.c | 141 skb->csum = csum_sub(skb->csum, in ip6_frag_queue()
|
D | raw.c | 570 tmp_csum = csum_sub(tmp_csum, csum_unfold(csum)); in rawv6_push_pending_frames()
|
D | ip6_output.c | 1744 skb_prev->csum = csum_sub(skb_prev->csum, in __ip6_append_data()
|
/linux-6.6.21/net/ipv4/ |
D | udp_offload.c | 46 partial = csum_sub(csum_unfold(uh->check), partial); in __skb_udp_tunnel_segment()
|
D | ip_sockglue.c | 125 csum = csum_sub(csum, skb_checksum(skb, tend_off, offset, 0)); in ip_cmsg_recv_checksum()
|
D | ip_output.c | 1153 skb_prev->csum = csum_sub(skb_prev->csum, in __ip_append_data()
|
/linux-6.6.21/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.6.21/drivers/net/ethernet/myricom/myri10ge/ |
D | myri10ge.c | 1291 skb->csum = csum_sub(skb->csum, vsum); in myri10ge_vlan_rx()
|
/linux-6.6.21/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 3351 tsum = ~csum_fold(csum_sub((__force __wsum) csum, in bnx2x_csum_fix()
|