diff options
| author | Cong Wang <[email protected]> | 2021-06-15 02:13:42 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-06-21 14:48:44 +0000 |
| commit | 781dd0431eb549f9cb1fdddf91a50d985febe884 (patch) | |
| tree | 0eac83278a9d358acc3faf5e274c10aa1ee94eb0 /drivers/fpga/socfpga.c | |
| parent | skmsg: Pass source psock to sk_psock_skb_redirect() (diff) | |
| download | kernel-781dd0431eb549f9cb1fdddf91a50d985febe884.tar.gz kernel-781dd0431eb549f9cb1fdddf91a50d985febe884.zip | |
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 'drivers/fpga/socfpga.c')
0 files changed, 0 insertions, 0 deletions
