diff options
author | Cong Wang <[email protected]> | 2021-06-14 19:13:42 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2021-06-21 16:48:44 +0200 |
commit | 781dd0431eb549f9cb1fdddf91a50d985febe884 (patch) | |
tree | 0eac83278a9d358acc3faf5e274c10aa1ee94eb0 /tools/perf/scripts/python/compaction-times.py | |
parent | 42830571f1fd9751b3fbf38084bbb253320e185f (diff) |
skmsg: Increase sk->sk_drops when dropping packets
It is hard to observe packet drops without increasing relevant
drop counters, here we should increase sk->sk_drops which is
a protocol-independent counter. Fortunately psock is always
associated with a struct sock, we can just use psock->sk.
Suggested-by: John Fastabend <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: John Fastabend <[email protected]>
Acked-by: Jakub Sitnicki <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions