Searched refs:fsum (Results 1 – 1 of 1) sorted by relevance
/net/netfilter/ |
D | nft_payload.c | 401 static inline void nft_csum_replace(__sum16 *sum, __wsum fsum, __wsum tsum) in nft_csum_replace() argument 403 *sum = csum_fold(csum_add(csum_sub(~csum_unfold(*sum), fsum), tsum)); in nft_csum_replace() 450 __wsum fsum, __wsum tsum) in nft_payload_l4csum_update() argument 468 nft_csum_replace(&sum, fsum, tsum); in nft_payload_l4csum_update() 470 skb->csum = ~csum_add(csum_sub(~(skb->csum), fsum), in nft_payload_l4csum_update() 474 sum = ~csum_fold(csum_add(csum_sub(csum_unfold(sum), fsum), in nft_payload_l4csum_update() 486 __wsum fsum, __wsum tsum, int csum_offset) in nft_payload_csum_inet() argument 493 nft_csum_replace(&sum, fsum, tsum); in nft_payload_csum_inet() 509 __wsum fsum, tsum; in nft_payload_set_eval() local 535 fsum = skb_checksum(skb, offset, priv->len, 0); in nft_payload_set_eval() [all …]
|