tg3: Move the [rt]x_dropped counters to tg3_napi
authorAlex Pakhunov <alexey.pakhunov@spacex.com>
Mon, 13 Nov 2023 18:23:49 +0000 (10:23 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Nov 2023 03:50:23 +0000 (19:50 -0800)
commit907d1bdb8b2cc0357d03a1c34d2a08d9943760b1
treeccf024750322f73472a9f732a533fb8a808dd68c
parentb6cb4541853c7ee512111b0e7ddf3cb66c99c137
tg3: Move the [rt]x_dropped counters to tg3_napi

This change moves [rt]x_dropped counters to tg3_napi so that they can be
updated by a single writer, race-free.

Signed-off-by: Alex Pakhunov <alexey.pakhunov@spacex.com>
Signed-off-by: Vincent Wong <vincent.wong2@spacex.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20231113182350.37472-1-alexey.pakhunov@spacex.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/broadcom/tg3.h