[ovs-dev] [PATCH] lisp: Reset vlan tag on send.
Pravin B Shelar
pshelar at nicira.com
Mon Sep 9 16:21:02 UTC 2013
Lisp needs to discards all l2 packet headers but if vlan tx
is hw-acceleraed vlan tag is stored in skb struct. Following
patch resets it.
Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
---
datapath/vport-lisp.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/datapath/vport-lisp.c b/datapath/vport-lisp.c
index c7da276..e4e603f 100644
--- a/datapath/vport-lisp.c
+++ b/datapath/vport-lisp.c
@@ -437,8 +437,11 @@ static int lisp_send(struct vport *vport, struct sk_buff *skb)
goto err_free_rt;
}
+ /* Reset l2 headers. */
skb_pull(skb, network_offset);
skb_reset_mac_header(skb);
+ vlan_set_tci(skb, 0);
+
skb_reset_inner_headers(skb);
__skb_push(skb, LISP_HLEN);
--
1.7.1
More information about the dev
mailing list