* [PATCH net-next v2] vxlan: set mac_header correctly in GPE mode
@ 2016-05-13 8:48 Jiri Benc
2016-05-13 10:21 ` Shmulik Ladkani
2016-05-16 17:38 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Jiri Benc @ 2016-05-13 8:48 UTC (permalink / raw)
To: netdev; +Cc: Simon Horman, Shmulik Ladkani
For VXLAN-GPE, the interface is ARPHRD_NONE, thus we need to reset
mac_header after pulling the outer header.
v2: Put the code to the existing conditional block as suggested by
Shmulik Ladkani.
Fixes: e1e5314de08b ("vxlan: implement GPE")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
---
drivers/net/vxlan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 2f29d20aa08f..25ab6bf013c4 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1381,6 +1381,7 @@ static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
if (!vxlan_set_mac(vxlan, vs, skb))
goto drop;
} else {
+ skb_reset_mac_header(skb);
skb->dev = vxlan->dev;
skb->pkt_type = PACKET_HOST;
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next v2] vxlan: set mac_header correctly in GPE mode
2016-05-13 8:48 [PATCH net-next v2] vxlan: set mac_header correctly in GPE mode Jiri Benc
@ 2016-05-13 10:21 ` Shmulik Ladkani
2016-05-16 17:38 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Shmulik Ladkani @ 2016-05-13 10:21 UTC (permalink / raw)
To: Jiri Benc; +Cc: netdev, Simon Horman
Hi,
On Fri, 13 May 2016 10:48:42 +0200 Jiri Benc <jbenc@redhat.com> wrote:
> For VXLAN-GPE, the interface is ARPHRD_NONE, thus we need to reset
> mac_header after pulling the outer header.
>
> v2: Put the code to the existing conditional block as suggested by
> Shmulik Ladkani.
>
> Fixes: e1e5314de08b ("vxlan: implement GPE")
> Signed-off-by: Jiri Benc <jbenc@redhat.com>
Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH net-next v2] vxlan: set mac_header correctly in GPE mode
2016-05-13 8:48 [PATCH net-next v2] vxlan: set mac_header correctly in GPE mode Jiri Benc
2016-05-13 10:21 ` Shmulik Ladkani
@ 2016-05-16 17:38 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2016-05-16 17:38 UTC (permalink / raw)
To: jbenc; +Cc: netdev, simon.horman, shmulik.ladkani
From: Jiri Benc <jbenc@redhat.com>
Date: Fri, 13 May 2016 10:48:42 +0200
> For VXLAN-GPE, the interface is ARPHRD_NONE, thus we need to reset
> mac_header after pulling the outer header.
>
> v2: Put the code to the existing conditional block as suggested by
> Shmulik Ladkani.
>
> Fixes: e1e5314de08b ("vxlan: implement GPE")
> Signed-off-by: Jiri Benc <jbenc@redhat.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-16 17:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-13 8:48 [PATCH net-next v2] vxlan: set mac_header correctly in GPE mode Jiri Benc
2016-05-13 10:21 ` Shmulik Ladkani
2016-05-16 17:38 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).