]> asedeno.scripts.mit.edu Git - linux.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)
commit322b87ca55f2f3936ec9f9de438ef9b2115b5c9b
tree2ced73155ffeb72ede9390ea938019a0477ba5df
parentf18c2b77b2e4eec2313d519ba125bd6a069513cf
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