Skip to contentSkip to conversation

VXLAN: Fix vxlan stats handling.

PATCH In review Pravin B Shelar 1 participant 1 message Mar 26, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v4 3/5 VXLAN: Fix vxlan stats handling.

Fixes bug in VXLAN code where is iptunnel_xmit() called with NULL dev->tstats.
This bug was introduced in commit 6aed0c8bf7d2f389b (tunnel: use iptunnel_xmit() again).

Following patch fixes bug by setting dev->tstats. It uses ip_tunnel module code to share stats function.

---
 drivers/net/Kconfig |    1 +
 drivers/net/vxlan.c |   72 +++++----------------------------------------------
 2 files changed, 8 insertions(+), 65 deletions(-)
drivers/net/Kconfig +1 -0
index 87f1d39..3835321 100644
@@ -151,6 +151,7 @@ config MACVTAP
 config VXLAN
        tristate "Virtual eXtensible Local Area Network (VXLAN)"
        depends on INET
+       select NET_IP_TUNNEL
        ---help---
 	  This allows one to create vxlan virtual interfaces that provide
 	  Layer 2 Networks over Layer 3 Networks. VXLAN is often used
drivers/net/vxlan.c +7 -65

124 lines not on this page · raw message

Signature · 1 line
1.7.1