Commit b7bfcb4
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: 2012a6a ("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>1 parent 8ad0440 commit b7bfcb4
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8996 | 8996 | | |
8997 | 8997 | | |
8998 | 8998 | | |
| 8999 | + | |
8999 | 9000 | | |
9000 | 9001 | | |
9001 | 9002 | | |
| |||
15363 | 15364 | | |
15364 | 15365 | | |
15365 | 15366 | | |
| 15367 | + | |
| 15368 | + | |
15366 | 15369 | | |
15367 | 15370 | | |
15368 | 15371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2318 | 2318 | | |
2319 | 2319 | | |
2320 | 2320 | | |
| 2321 | + | |
2321 | 2322 | | |
2322 | 2323 | | |
2323 | 2324 | | |
| |||
0 commit comments