summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2021-11-24 12:24:45 -0800
committerJakub Kicinski <kuba@kernel.org>2021-11-25 21:03:31 -0800
commit0bd28476f6363c7ccc841fe6a0ab0dd1fdb822f6 (patch)
tree8d1bfa9f18c5d8082794f804dea59d21312a88c4 /net/unix/af_unix.c
parent703319094c9c2bf34f65d3496ccb350149fdd14b (diff)
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 <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions