gve: Add rx buffer pagecnt bias
authorCatherine Sullivan <csully@google.com>
Mon, 11 Oct 2021 15:36:45 +0000 (08:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Oct 2021 22:25:35 +0000 (23:25 +0100)
commit58401b2a46e7d5090873e7725ac786685475d638
treec1646970e8ffb91c964b48d183c6efd880bea52b
parent2cb67ab153d59473d67713c709a198922b7e87a3
gve: Add rx buffer pagecnt bias

Add a pagecnt bias field to rx buffer info struct to eliminate
needing to increment the atomic page ref count on every pass in the
rx hotpath.

Also prefetch two packet pages ahead.

Fixes: ede3fcf5ec67f ("gve: Add support for raw addressing to the rx path")
Signed-off-by: Yanchun Fu <yangchun@google.com>
Signed-off-by: Nathan Lewis <npl@google.com>
Signed-off-by: Catherine Sullivan <csully@google.com>
Signed-off-by: David Awogbemila <awogbemila@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve_rx.c