]> git.ipfire.org Git - thirdparty/linux.git/commit
net: stmmac: check txpbl for TSO
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 1 Apr 2026 07:22:15 +0000 (08:22 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Apr 2026 18:28:20 +0000 (11:28 -0700)
commit33f5cc83bbbdf73bd0c145403b30b49eec4b0311
treefc9da1ca2605cfcd120df1dac50147dce3337b51
parentf8c70ab540c1a15e281baa10eec270396aa04d1a
net: stmmac: check txpbl for TSO

Documentation states that TxPBL must be >= 4 to allow TSO support, but
the driver doesn't check this. TxPBL comes from the platform glue code
or DT. Add a check with a warning if platform glue code attempts to
enable TSO support with TxPBL too low.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1w7pu3-0000000Eatz-39ts@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c