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 <pshe...@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 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev