]> 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)
commitc61e85bd33bc670d572c32bbe616a984aca9474f
treec1899ec82ef6c5c7263b2f4da4ad70386a68f63d
parentb6a4d3c7091e2ed34d92d008f2bd2f038bcfdbb0
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