]> git.hungrycats.org Git - linux/commit
eth: bnxt: disable rx-copybreak by default
authorJakub Kicinski <kuba@kernel.org>
Tue, 2 Jun 2026 00:37:59 +0000 (17:37 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Jun 2026 02:18:06 +0000 (19:18 -0700)
commitbd3beb5c8691318048043d6d2c78d78189d66bdd
treeed82cef472715113f23a090510419aeac766774c
parentee5aee77bcba421fd2830e5036a18c206f7c2844
eth: bnxt: disable rx-copybreak by default

rx-copybreak requires an extra slab allocation. Since bnxt uses
page pool frags and HDS by default, the rx-copybreak doesn't
buy us anything. The extra pressure on slab causes overload
on pre-sheaves kernels on modern AMD platforms.

In synthetic testing on net-next this patch shows little difference
but I think copybreak is "obvious waste" at this point.

Default rx-copybreak threshold to 0 / disabled.

The "copybreak" defines are really the size bounds for the Rx header
buffer. Rename them.

Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://patch.msgid.link/20260602003759.1545645-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c