ionic: implement Rx page reuse
authorShannon Nelson <snelson@pensando.io>
Wed, 10 Mar 2021 19:26:27 +0000 (11:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Mar 2021 23:34:28 +0000 (15:34 -0800)
commit4b0a7539a3728f0fd7a11087d64371e8c28b4723
tree98f899ef53e8053c54a01b2e0497dd5f9297892c
parent2b5720f26908571ff98bb279a6cb15f3b2660bb0
ionic: implement Rx page reuse

Rework the Rx buffer allocations to use pages twice when using
normal MTU in order to cut down on buffer allocation and mapping
overhead.

Instead of tracking individual pages, in which we may have
wasted half the space when using standard 1500 MTU, we track
buffers which use half pages, so we can use the second half
of the page rather than allocate and map a new page once the
first buffer has been used.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_dev.h
drivers/net/ethernet/pensando/ionic/ionic_txrx.c