]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ipa-RX-replenish'
authorDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2022 10:16:09 +0000 (10:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2022 10:16:09 +0000 (10:16 +0000)
commitc71f75f0adc468712a9914a74c11ea409da7b41f
tree3eb002149563610279593eaa4d64865348471cea
parent4465cb27eeeaeb851cb9445785d36f202d3c2a47
parentbad849f53206dc081a1152b95bad7650a1401476
Merge branch 'ipa-RX-replenish'

Alex Elder says:

====================
net: ipa: improve RX buffer replenishing

This series revises the algorithm used for replenishing receive
buffers on RX endpoints.  Currently there are two atomic variables
that track how many receive buffers can be sent to the hardware.
The new algorithm obviates the need for those, by just assuming we
always want to provide the hardware with buffers until it can hold
no more.

The first patch eliminates an atomic variable that's not required.
The next moves some code into the main replenish function's caller,
making one of the called function's arguments unnecessary.   The
next six refactor things a bit more, adding a new helper function
that allows us to eliminate an additional atomic variable.  And the
final two implement two more minor improvements.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>