vxlan: simplify exception handling
authorpravin shelar <pshelar@ovn.org>
Mon, 14 Nov 2016 04:43:54 +0000 (20:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Nov 2016 17:16:13 +0000 (12:16 -0500)
commitc46b7897ad5ba49b215882fa6a1e4c28d21acf4f
tree5486f3fa2634a06fb8c3866ab8a247c9de499623
parent03dc52a86d58c70577d9f62527f68db9116f61a5
vxlan: simplify exception handling

vxlan egress path error handling has became complicated, it
need to handle IPv4 and IPv6 tunnel cases.
Earlier patch removes vlan handling from vxlan_build_skb(), so
vxlan_build_skb does not need to free skb and we can simplify
the xmit path by having single error handling for both type of
tunnels.

Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c