]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tg3: Increment tx_dropped in tg3_tso_bug()
authorAlex Pakhunov <alexey.pakhunov@spacex.com>
Mon, 13 Nov 2023 18:23:50 +0000 (10:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2023 17:36:32 +0000 (18:36 +0100)
commitc5ab980acfc0423994480b5cd4274ceb468a5c99
tree166a64ab4a84ee2c205cf881bd353d8b569abff4
parentd188dcb9db40fc9330425f91a8608c9e25934f9a
tg3: Increment tx_dropped in tg3_tso_bug()

[ Upstream commit 17dd5efe5f36a96bd78012594fabe21efb01186b ]

tg3_tso_bug() drops a packet if it cannot be segmented for any reason.
The number of discarded frames should be incremented accordingly.

Signed-off-by: Alex Pakhunov <alexey.pakhunov@spacex.com>
Signed-off-by: Vincent Wong <vincent.wong2@spacex.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://lore.kernel.org/r/20231113182350.37472-2-alexey.pakhunov@spacex.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/tg3.c