Home
last modified time | relevance | path

Searched refs:tsum (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/net/netfilter/
Dnft_payload.c480 static inline void nft_csum_replace(__sum16 *sum, __wsum fsum, __wsum tsum) in nft_csum_replace() argument
482 *sum = csum_fold(csum_add(csum_sub(~csum_unfold(*sum), fsum), tsum)); in nft_csum_replace()
539 __wsum fsum, __wsum tsum) in nft_payload_l4csum_update() argument
557 nft_csum_replace(&sum, fsum, tsum); in nft_payload_l4csum_update()
560 tsum); in nft_payload_l4csum_update()
564 tsum)); in nft_payload_l4csum_update()
575 __wsum fsum, __wsum tsum, int csum_offset) in nft_payload_csum_inet() argument
582 nft_csum_replace(&sum, fsum, tsum); in nft_payload_csum_inet()
598 __wsum fsum, tsum; in nft_payload_set_eval() local
625 tsum = csum_partial(src, priv->len, 0); in nft_payload_set_eval()
[all …]
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3327 __sum16 tsum = (__force __sum16) csum; in bnx2x_csum_fix() local
3330 tsum = ~csum_fold(csum_sub((__force __wsum) csum, in bnx2x_csum_fix()
3334 tsum = ~csum_fold(csum_add((__force __wsum) csum, in bnx2x_csum_fix()
3337 return bswab16(tsum); in bnx2x_csum_fix()