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)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Nov 2023 03:50:23 +0000 (19:50 -0800)
commit17dd5efe5f36a96bd78012594fabe21efb01186b
tree39862a7d40f4ee254a2079dfb441ba775761e1d7
parent907d1bdb8b2cc0357d03a1c34d2a08d9943760b1
tg3: Increment tx_dropped in tg3_tso_bug()

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>
drivers/net/ethernet/broadcom/tg3.c