aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ipa/gsi.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-08-31 17:40:14 -0500
committerDavid S. Miller <davem@davemloft.net>2022-09-02 12:08:44 +0100
commitfc95d958e27df51fdf128098ce26f2727f8c7b06 (patch)
tree4ba7116b35bac72337fa96fe969c1459c2865e59 /drivers/net/ipa/gsi.h
parentnet: ipa: track allocated transactions with an ID (diff)
downloadwireguard-linux-fc95d958e27df51fdf128098ce26f2727f8c7b06.tar.xz
wireguard-linux-fc95d958e27df51fdf128098ce26f2727f8c7b06.zip
net: ipa: track committed transactions with an ID
Add a transaction ID field to track the first element in a channel's transaction array that has been committed, but not yet passed to the hardware. Advance the ID when the hardware is notified via doorbell that TREs from a transaction are ready for consumption. Temporarily add warnings that verify that the first committed transaction tracked by the ID matches the first element on the committed list, both when committing and pending (at doorbell). 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 6bbbda6f27ea..cc46a9119fc5 100644
--- a/drivers/net/ipa/gsi.h
+++ b/drivers/net/ipa/gsi.h
@@ -85,6 +85,7 @@ struct gsi_trans_info {
u16 free_id; /* first free trans in array */
u16 allocated_id; /* first allocated transaction */
+ u16 committed_id; /* first committed transaction */
struct gsi_trans *trans; /* transaction array */
struct gsi_trans **map; /* TRE -> transaction map */