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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
lategoodbye authored and kuba-moo 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.