Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efeb2267 authored by Haishuang Yan's avatar Haishuang Yan Committed by David S. Miller
Browse files

geneve: fix tx_errors statistics



Tx errors present summation of errors encountered while transmitting
packets.

Signed-off-by: default avatarHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 52fe705b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -958,7 +958,7 @@ static netdev_tx_t geneve_xmit_skb(struct sk_buff *skb, struct net_device *dev,
		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 @@ static netdev_tx_t geneve6_xmit_skb(struct sk_buff *skb, struct net_device *dev,
		dev->stats.collisions++;
	else if (err == -ENETUNREACH)
		dev->stats.tx_carrier_errors++;
	else

	dev->stats.tx_errors++;
	return NETDEV_TX_OK;
}