]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: use skb_reset_mac_header() in macvlan_queue_xmit()
authorEric Dumazet <edumazet@google.com>
Tue, 14 Jan 2020 21:00:35 +0000 (13:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jan 2020 12:12:37 +0000 (13:12 +0100)
commiteb113d8f9aa3b92f0509ff8b07b86ea0793f7081
tree0551584d0536d6735ffc0a1c1ada45241c67bf62
parentc3ad3e8df91bab1088fccf5968a9cedbb4afbf9b
macvlan: use skb_reset_mac_header() in macvlan_queue_xmit()

I missed the fact that macvlan_broadcast() can be used both
in RX and TX.

skb_eth_hdr() makes only sense in TX paths, so we can not
use it blindly in macvlan_broadcast()

Fixes: 156b11c857f8 ("macvlan: do not assume mac_header is set in macvlan_broadcast()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Jurgen Van Ham <juvanham@gmail.com>
Tested-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c