]> 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)
commit6599346c38c153f78bb9cf3ff752c7edb0052a74
tree98f899ef53e8053c54a01b2e0497dd5f9297892c
parent23c5b55aa8ae91f477c52b6beb7b954c987c6961
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