Skip to content

Commit

Permalink
net: vertexcom: mse102x: Silence TX timeout
Browse files Browse the repository at this point in the history
As long as the MSE102x is not operational, every packet transmission
will run into a TX timeout and flood the kernel log. So log only the
first TX timeout and a user is at least informed about this issue.
The amount of timeouts are still available via netstat.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240827191000.3244-3-wahrenst@gmx.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Stefan Wahren authored and Jakub Kicinski committed Aug 29, 2024
1 parent c88908b commit 0069716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/vertexcom/mse102x.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ static void mse102x_tx_work(struct work_struct *work)

if (ret == -ETIMEDOUT) {
if (netif_msg_timer(mse))
netdev_err(mse->ndev, "tx work timeout\n");
netdev_err_once(mse->ndev, "tx work timeout\n");

mse->stats.tx_timeout++;
}
Expand Down

0 comments on commit 0069716

Please sign in to comment.