aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ipa/gsi.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-08-31 17:40:17 -0500
committerDavid S. Miller <davem@davemloft.net>2022-09-02 12:08:44 +0100
commitfd3bd0398a0dfc7fc30bc9281bd1ae879527f96c (patch)
treefafcfc1b096c8033990273281f16b3423b8b0971 /drivers/net/ipa/gsi.h
parentnet: ipa: track completed transactions with an ID (diff)
downloadwireguard-linux-fd3bd0398a0dfc7fc30bc9281bd1ae879527f96c.tar.xz
wireguard-linux-fd3bd0398a0dfc7fc30bc9281bd1ae879527f96c.zip
net: ipa: track polled transactions with an ID
Add a transaction ID to track the first element in the transaction array that has been polled. Advance the ID when we are releasing a transaction. Temporarily add warnings that verify that the first polled transaction tracked by the ID matches the first element on the polled list, both when polling and freeing. 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>
Diffstat (limited to 'drivers/net/ipa/gsi.h')
-rw-r--r--drivers/net/ipa/gsi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ipa/gsi.h b/drivers/net/ipa/gsi.h
index 987f9f5f35d3..13468704c400 100644
--- a/drivers/net/ipa/gsi.h
+++ b/drivers/net/ipa/gsi.h
@@ -88,6 +88,7 @@ struct gsi_trans_info {
u16 committed_id; /* first committed transaction */
u16 pending_id; /* first pending transaction */
u16 completed_id; /* first completed transaction */
+ u16 polled_id; /* first polled transaction */
struct gsi_trans *trans; /* transaction array */
struct gsi_trans **map; /* TRE -> transaction map */