mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
geneve: fix tx_errors statistics
Tx errors present summation of errors encountered while transmitting packets. Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
52fe705b49
commit
efeb2267bb
1 changed files with 4 additions and 4 deletions
|
@ -958,7 +958,7 @@ tx_error:
|
|||
dev->stats.collisions++;
|
||||
else if (err == -ENETUNREACH)
|
||||
dev->stats.tx_carrier_errors++;
|
||||
else
|
||||
|
||||
dev->stats.tx_errors++;
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
@ -1048,7 +1048,7 @@ tx_error:
|
|||
dev->stats.collisions++;
|
||||
else if (err == -ENETUNREACH)
|
||||
dev->stats.tx_carrier_errors++;
|
||||
else
|
||||
|
||||
dev->stats.tx_errors++;
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue