bnxt: change receive ring space parameters
authorAndy Gospodarek <gospo@broadcom.com>
Fri, 8 Apr 2022 07:59:02 +0000 (03:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2022 10:52:47 +0000 (11:52 +0100)
commit32861236190bf1247d18e245cee0814603d2c29f
tree22fa6b14555dc6d030bbd4d5a9e76b9826a5e454
parent31b9998bf225eca51f0d9f8d694d807495bf80a8
bnxt: change receive ring space parameters

Modify ring header data split and jumbo parameters to account
for the fact that the design for XDP multibuffer puts close to
the first 4k of data in a page and the remaining portions of
the packet go in the aggregation ring.

v3: Simplified code around initial buffer size calculation

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
drivers/net/ethernet/broadcom/bnxt/bnxt.h