summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>2016-09-04 13:52:51 +0300
committerDavid S. Miller <davem@davemloft.net>2016-09-06 23:41:42 +0300
commit5e1e61a33f987eb5d87c5acb199da99b6a9da93d (patch)
tree2d37015de6b0fa1d13f4f50b53277959a58204e8 /drivers
parent326fe02d1ed61a63c30fa1f144758f34f0ef11cb (diff)
downloadlinux-5e1e61a33f987eb5d87c5acb199da99b6a9da93d.tar.xz
vxlan: Update tx_errors statistics if vxlan_build_skb return err.
If vxlan_build_skb return err < 0, tx_errors should be also increased. Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com> Acked-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/vxlan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 9735059dee99..199dec033cf8 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -2103,6 +2103,7 @@ static void vxlan_xmit_one(struct sk_buff *skb, struct net_device *dev,
vni, md, flags, udp_sum);
if (err < 0) {
dst_release(ndst);
+ dev->stats.tx_errors++;
return;
}
udp_tunnel6_xmit_skb(ndst, sk, skb, dev,