net: ipa: minor update to handling of packet with status
authorAlex Elder <elder@linaro.org>
Tue, 26 Jan 2021 18:56:59 +0000 (12:56 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jan 2021 04:23:25 +0000 (20:23 -0800)
commit162fbc6f4519f9b083fbd96b60d908c78a9c87f6
tree0928a4f26a8999ef058a5672b8d5feba506527da
parentaa56e3e5cdb4f7e1aee6dd04f0934a7429d30246
net: ipa: minor update to handling of packet with status

Rearrange some comments and assignments made when handling a packet
that is received with status, aiming to improve understandability.

Use DIV_ROUND_CLOSEST() to get a better per-packet true size estimate.

Signed-off-by: Alex Elder <elder@linaro.org>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_endpoint.c