]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: add page_pool support
authorAndy Gospodarek <gospo@broadcom.com>
Mon, 8 Jul 2019 21:53:04 +0000 (17:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jul 2019 22:15:25 +0000 (15:15 -0700)
commitc51cf60589302ab3dfcea130169d46336713f58f
tree2ced73155ffeb72ede9390ea938019a0477ba5df
parent6260944814e68ec1232cb008d6d72ab50ce1c985
bnxt_en: add page_pool support

This removes contention over page allocation for XDP_REDIRECT actions by
adding page_pool support per queue for the driver.  The performance for
XDP_REDIRECT actions scales linearly with the number of cores performing
redirect actions when using the page pools instead of the standard page
allocator.

v2: Fix up the error path from XDP registration, noted by Ilias Apalodimas.

Signed-off-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/Kconfig
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c