diff options
author | David Howells <dhowells@redhat.com> | 2022-10-06 15:43:51 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2022-12-01 13:36:41 +0000 |
commit | 2d1faf7a0ca3c0b327cf064c80e4e775532c9319 (patch) | |
tree | 91fd80aa14c25d609dff2acd4c60cbdbd0b66b8b /samples/bpf | |
parent | 29fb4ec385f18db98d9188c2173a0b07d2de6917 (diff) |
rxrpc: Simplify skbuff accounting in receive path
A received skbuff needs a ref when it gets put on a call data queue or conn
packet queue, and rxrpc_input_packet() and co. jump through a lot of hoops
to avoid double-dropping the skbuff ref so that we can avoid getting a ref
when we queue the packet.
Change this so that the skbuff ref is unconditionally dropped by the caller
of rxrpc_input_packet(). An additional ref is then taken on the packet if
it is pushed onto a queue.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Diffstat (limited to 'samples/bpf')
0 files changed, 0 insertions, 0 deletions