git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eba9361
)
lisp: Reset vlan tag on send.
author
Pravin B Shelar
<pshelar@nicira.com>
Mon, 9 Sep 2013 16:21:02 +0000
(09:21 -0700)
committer
Pravin B Shelar
<pshelar@nicira.com>
Sun, 8 Sep 2013 02:05:08 +0000
(19:05 -0700)
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@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/vport-lisp.c
patch
|
blob
|
history
diff --git
a/datapath/vport-lisp.c
b/datapath/vport-lisp.c
index
c7da276
..
e4e603f
100644
(file)
--- 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);