Home
last modified time | relevance | path

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

/Linux-v5.4/net/netfilter/
Dnft_payload.c394 static inline void nft_csum_replace(__sum16 *sum, __wsum fsum, __wsum tsum) in nft_csum_replace() argument
396 *sum = csum_fold(csum_add(csum_sub(~csum_unfold(*sum), fsum), tsum)); in nft_csum_replace()
440 __wsum fsum, __wsum tsum) in nft_payload_l4csum_update() argument
458 nft_csum_replace(&sum, fsum, tsum); in nft_payload_l4csum_update()
461 tsum); in nft_payload_l4csum_update()
465 tsum)); in nft_payload_l4csum_update()
476 __wsum fsum, __wsum tsum, int csum_offset) in nft_payload_csum_inet() argument
483 nft_csum_replace(&sum, fsum, tsum); in nft_payload_csum_inet()
499 __wsum fsum, tsum; in nft_payload_set_eval() local
526 tsum = csum_partial(src, priv->len, 0); in nft_payload_set_eval()
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3324 __sum16 tsum = (__force __sum16) csum; in bnx2x_csum_fix() local
3327 tsum = ~csum_fold(csum_sub((__force __wsum) csum, in bnx2x_csum_fix()
3331 tsum = ~csum_fold(csum_add((__force __wsum) csum, in bnx2x_csum_fix()
3334 return bswab16(tsum); in bnx2x_csum_fix()