diff options
| author | 2021-11-15 11:02:45 -0800 | |
|---|---|---|
| committer | 2021-11-16 13:10:35 +0000 | |
| commit | 3df684c1a3d08a4f649689053a3d527b3b5fda9e (patch) | |
| tree | 17d2c3b3f8b711561fd2317d83a365c8d24301e8 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | tcp: tp->urg_data is unlikely to be set (diff) | |
| download | linux-dev-3df684c1a3d08a4f649689053a3d527b3b5fda9e.tar.xz linux-dev-3df684c1a3d08a4f649689053a3d527b3b5fda9e.zip | |
tcp: avoid indirect calls to sock_rfree
TCP uses sk_eat_skb() when skbs can be removed from receive queue.
However, the call to skb_orphan() from __kfree_skb() incurs
an indirect call so sock_rfee(), which is more expensive than
a direct call, especially for CONFIG_RETPOLINE=y.
Add tcp_eat_recv_skb() function to make the call before
__kfree_skb().
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
