]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: track completed transactions with an ID
authorAlex Elder <elder@linaro.org>
Wed, 31 Aug 2022 22:40:16 +0000 (17:40 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Sep 2022 11:08:44 +0000 (12:08 +0100)
commitede78d3e559a48dc1d59f423ac1a14aa4d997615
tree9d95a3b7f99ada3ddfe758e0cc85c8ce450bba23
parent501b538c864abc76ead81901e3fcd3369eb8bffa
net: ipa: track completed transactions with an ID

Add a transaction ID field to track the first element in the
transaction array that has completed but has not yet been polled.

Advance the ID when we are processing a transaction in the NAPI
polling loop (where completed transactions become polled).

Temporarily add warnings that verify that the first completed
transaction tracked by the ID matches the first element on the
completed list, both when pending and completing.

Remove the temporary warnings added by the previous commit.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/gsi.h
drivers/net/ipa/gsi_trans.c