diff options
| author | Eric Dumazet <[email protected]> | 2021-11-24 20:24:46 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-11-26 05:03:31 +0000 |
| commit | 29c3002644bdd653f6ec6407d25135d0a4f7cefb (patch) | |
| tree | 7f17a01eb6164d66c713a0d18fde1ffa231707e4 /net/unix/af_unix.c | |
| parent | gro: optimize skb_gro_postpull_rcsum() (diff) | |
| download | kernel-29c3002644bdd653f6ec6407d25135d0a4f7cefb.tar.gz kernel-29c3002644bdd653f6ec6407d25135d0a4f7cefb.zip | |
net: optimize skb_postpull_rcsum()
Remove one pair of add/adc instructions and their dependency
against carry flag.
We can leverage third argument to csum_partial():
X = csum_block_sub(X, csum_partial(start, len, 0), 0);
-->
X = csum_block_add(X, ~csum_partial(start, len, 0), 0);
-->
X = ~csum_partial(start, len, ~X);
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
