]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: set mac_header correctly in GPE mode
authorJiri Benc <jbenc@redhat.com>
Fri, 13 May 2016 08:48:42 +0000 (10:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:37:10 +0000 (13:37 -0400)
commit4d48d844ba516a8062dcd926e76113676e2ffe29
treeed8ec3a913afbeb21d14ba268d6487d37c579219
parent77d0ad31bb66d36950801c55961c5c03b16f8b54
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: a5323a4b20f4 ("vxlan: implement GPE")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c