diff options
author | Jonathan Lemon <jonathan.lemon@gmail.com> | 2019-08-13 20:45:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-15 22:27:36 +0300 |
commit | 8d73f8f23e6b869b726cb01dd4747f56dc88660a (patch) | |
tree | a19e6d1e6829a6106b80e66a2440960cc2a164fa /drivers/net/ethernet/qlogic/qed/qed_hsi.h | |
parent | 4b58c9b127f04bb3eea5a2a9ab8ef039b9fe9b71 (diff) | |
download | linux-8d73f8f23e6b869b726cb01dd4747f56dc88660a.tar.xz |
page_pool: fix logic in __page_pool_get_cached
__page_pool_get_cached() will return NULL when the ring is
empty, even if there are pages present in the lookaside cache.
It is also possible to refill the cache, and then return a
NULL page.
Restructure the logic so eliminate both cases.
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_hsi.h')
0 files changed, 0 insertions, 0 deletions