]> git.ipfire.org Git - thirdparty/linux.git/commit
rxrpc: Tidy up the ACK parsing a bit
authorDavid Howells <dhowells@redhat.com>
Wed, 4 Dec 2024 07:47:02 +0000 (07:47 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 Dec 2024 21:48:31 +0000 (13:48 -0800)
commit547a9acd4c5e95190c6c93a6d8628c5b8b74a4d6
tree92331aee507868be3ef9a8a7eb455f83c44f13c7
parenta2ea9a9072607c2fd6442bd1ffb4dbdbf882aed7
rxrpc: Tidy up the ACK parsing a bit

Tidy up the ACK parsing in the following ways:

 (1) Put the serial number of the ACK packet into the rxrpc_ack_summary
     struct and access it from there whilst parsing an ACK.

 (2) Be consistent about using "if (summary.acked_serial)" rather than "if
     (summary.acked_serial != 0)".

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/rxrpc/ar-internal.h
net/rxrpc/input.c