]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: allocate transaction before pages when replenishing
authorAlex Elder <elder@linaro.org>
Thu, 3 Feb 2022 17:09:19 +0000 (11:09 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2022 10:16:07 +0000 (10:16 +0000)
commitf5068056dbafa4cea1da39493b7fe210e1065627
treec717c2cc85445108e19732ca0cb3489ca3525725
parent060350605401facd802dd4e1f55228fb1ad25aba
net: ipa: allocate transaction before pages when replenishing

A transaction failure only occurs if no more transactions are
available for an endpoint.  It's a very cheap test.

When replenishing an RX endpoint buffer, there's no point in
allocating pages if transactions are exhausted.  So don't bother
doing so unless the transaction allocation succeeds.

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