bnxt: add page_pool support for aggregation ring when using xdp
authorAndy Gospodarek <gospo@broadcom.com>
Fri, 8 Apr 2022 07:59:03 +0000 (03:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2022 10:52:48 +0000 (11:52 +0100)
commit9a6aa3504885331a2fbf843c8cb7fa6be49a3d40
tree5702c0e6b54ac4bfa0eeb9398c79273a49547b7f
parent32861236190bf1247d18e245cee0814603d2c29f
bnxt: add page_pool support for aggregation ring when using xdp

If we are using aggregation rings with XDP enabled, allocate page
buffers for the aggregation rings from the page_pool.

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/bnxt/bnxt.c