]> www.infradead.org Git - users/willy/pagecache.git/commit
bnxt_en: Set TSO max segs on devices with limits
authorMichael Chan <michael.chan@broadcom.com>
Tue, 18 Jun 2024 21:53:12 +0000 (14:53 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Jun 2024 13:46:08 +0000 (06:46 -0700)
commitb7bfcb4c7ce44fd0070ce8bccbc91c56341f05c1
tree105012d12b0b2b39d3670d2f302128bc5bb7bd62
parent8ad04409921f4c405859a651c9a9e5ff5eb5e8a9
bnxt_en: Set TSO max segs on devices with limits

Firmware will now advertise a non-zero TSO max segments if the
device has a limit.  0 means no limit.  The latest 5760X chip
(early revs) has a limit of 2047 that cannot be exceeded.  If
exceeded, the chip will send out just a small number of segments.

Call netif_set_tso_max_segs() if the device has a limit.

Fixes: 2012a6abc876 ("bnxt_en: Add 5760X (P7) PCI IDs")
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20240618215313.29631-3-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h