vxlan: Update tx_errors statistics if vxlan_build_skb return err.
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Sun, 4 Sep 2016 10:52:51 +0000 (18:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Sep 2016 20:41:42 +0000 (13:41 -0700)
commit5e1e61a33f987eb5d87c5acb199da99b6a9da93d
tree2d37015de6b0fa1d13f4f50b53277959a58204e8
parent326fe02d1ed61a63c30fa1f144758f34f0ef11cb
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>
drivers/net/vxlan.c