Skip to content

Commit 8be0cfa

Browse files
Jiri Bencdavem330
authored andcommitted
vxlan: set mac_header correctly in GPE mode
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: e1e5314 ("vxlan: implement GPE") Signed-off-by: Jiri Benc <[email protected]> Reviewed-by: Shmulik Ladkani <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 41ae56c commit 8be0cfa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/vxlan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,6 +1381,7 @@ static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
13811381
if (!vxlan_set_mac(vxlan, vs, skb))
13821382
goto drop;
13831383
} else {
1384+
skb_reset_mac_header(skb);
13841385
skb->dev = vxlan->dev;
13851386
skb->pkt_type = PACKET_HOST;
13861387
}

0 commit comments

Comments
 (0)