diff options
author | Alex Elder <elder@linaro.org> | 2022-02-03 11:09:18 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-04 10:16:07 +0000 |
commit | a9bec7ae70c16f003d6138617c8bd305de3b230e (patch) | |
tree | d8be15530dd2aad43d18b491545a4ad66c1e8f38 /drivers/net/ipa/ipa_endpoint.h | |
parent | b93235e68921b9acd38ee309953a3a9808105289 (diff) | |
download | lwn-a9bec7ae70c16f003d6138617c8bd305de3b230e.tar.gz lwn-a9bec7ae70c16f003d6138617c8bd305de3b230e.zip |
net: ipa: kill replenish_saved
The replenish_saved field keeps track of the number of times a new
buffer is added to the backlog when replenishing is disabled. We
don't really use it though, so there's no need for us to track it
separately. Whether replenishing is enabled or not, we can simply
increment the backlog.
Get rid of replenish_saved, and initialize and increment the backlog
where it would have otherwise been used.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_endpoint.h')
-rw-r--r-- | drivers/net/ipa/ipa_endpoint.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ipa/ipa_endpoint.h b/drivers/net/ipa/ipa_endpoint.h index 0313cdc607de..c95816d882a7 100644 --- a/drivers/net/ipa/ipa_endpoint.h +++ b/drivers/net/ipa/ipa_endpoint.h @@ -66,7 +66,6 @@ enum ipa_replenish_flag { * @netdev: Network device pointer, if endpoint uses one * @replenish_flags: Replenishing state flags * @replenish_ready: Number of replenish transactions without doorbell - * @replenish_saved: Replenish requests held while disabled * @replenish_backlog: Number of buffers needed to fill hardware queue * @replenish_work: Work item used for repeated replenish failures */ @@ -87,7 +86,6 @@ struct ipa_endpoint { /* Receive buffer replenishing for RX endpoints */ DECLARE_BITMAP(replenish_flags, IPA_REPLENISH_COUNT); u32 replenish_ready; - atomic_t replenish_saved; atomic_t replenish_backlog; struct delayed_work replenish_work; /* global wq */ }; |