]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb00c1046dad63648038a6c78335abeb66d63dee6
tree98f899ef53e8053c54a01b2e0497dd5f9297892c
parent8b742b0608a735a8a8d5a7d8af47ede6316bd587
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