]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7fb8f6f01b3b3c873d42083163f35d6501a720be
tree2d37015de6b0fa1d13f4f50b53277959a58204e8
parent1197882355a1b6816fb8a8f9d4282308044e8e17
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