aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-11-24 20:24:45 +0000
committerJakub Kicinski <[email protected]>2021-11-26 05:03:31 +0000
commit0bd28476f6363c7ccc841fe6a0ab0dd1fdb822f6 (patch)
tree8d1bfa9f18c5d8082794f804dea59d21312a88c4 /net/unix/af_unix.c
parentsctp: make the raise timer more simple and accurate (diff)
downloadkernel-0bd28476f6363c7ccc841fe6a0ab0dd1fdb822f6.tar.gz
kernel-0bd28476f6363c7ccc841fe6a0ab0dd1fdb822f6.zip
gro: optimize skb_gro_postpull_rcsum()
We can leverage third argument to csum_partial(): X = csum_sub(X, csum_partial(start, len, 0)); --> X = csum_add(X, ~csum_partial(start, len, 0)); --> X = ~csum_partial(start, len, ~X); This removes one add/adc pair and its dependency against the carry flag. 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