]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: stop counting total RX bytes and transactions
authorAlex Elder <elder@linaro.org>
Mon, 13 Jun 2022 17:17:58 +0000 (12:17 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2022 08:07:58 +0000 (09:07 +0100)
commitcacfd64aed33c5911ccf20ad542d6bb57d44f1bb
treec1899ec82ef6c5c7263b2f4da4ad70386a68f63d
parentf72a23949cc1f0188f12c9ed8683bc5658619b9a
net: ipa: stop counting total RX bytes and transactions

In gsi_evt_ring_rx_update(), we update each transaction so its len
field reflects the actual number of bytes received.  In the process,
the total number of transactions and bytes processed on the channel
are summed, and added to a running total for the channel.

But we don't actually use those running totals for RX endpoints.
They're maintained for TX channels to support CoDel when they are
associated with a "real" network device.

So stop maintaining these totals for RX endpoints, and update the
comment where the fields are defined to make it clear they're only
valid for TX channels.

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