diff options
author | Vladimir Oltean <[email protected]> | 2023-04-21 01:55:53 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-04-23 14:16:44 +0100 |
commit | f90615ada0b1e21a9d93ff89b04549fd7a92c92b (patch) | |
tree | 3e28e2a926ed784c16043f4a8667a5ac4a731e37 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 4d2bd2581c3bc73e9fdf5f82b25c359212567457 (diff) |
net: vlan: don't adjust MAC header in __vlan_insert_inner_tag() unless set
This is a preparatory change for the deletion of skb_reset_mac_header(skb)
from __dev_queue_xmit(). After that deletion, skb_mac_header(skb) will
no longer be set in TX paths, from which __vlan_insert_inner_tag() can
still be called (perhaps indirectly).
If we don't make this change, then an unset MAC header (equal to ~0U)
will become set after the adjustment with VLAN_HLEN.
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions