Skip to content
Commit 1712b2ff authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

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: 96cc4b69 ("macvlan: do not assume mac_header is set in macvlan_broadcast()")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Reported-by: default avatarJurgen Van Ham <juvanham@gmail.com>
Tested-by: default avatarMatteo Croce <mcroce@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3981f955
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment