]> 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)
commite5ff0f4ab3c7f2b7e52381d9d640d037636ef99c
treec717c2cc85445108e19732ca0cb3489ca3525725
parent7a1deaf3fb59ead0a1101f7e80cc2837833dda24
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