aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/sja1105
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2019-06-08 15:04:29 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-08 15:20:39 -0700
commitd461933638ae9fa49ad22f60a40de5b3ed414912 (patch)
treeb64fade690f6cf9244260f0640e0e02a1065eb29 /drivers/net/dsa/sja1105
parentnet: dsa: Add teardown callback for drivers (diff)
downloadlinux-dev-d461933638ae9fa49ad22f60a40de5b3ed414912.tar.xz
linux-dev-d461933638ae9fa49ad22f60a40de5b3ed414912.zip
net: dsa: tag_8021q: Create helper function for removing VLAN header
This removes the existing implementation from tag_sja1105, which was partially incorrect (it was not changing the MAC header offset, thereby leaving it to point 4 bytes earlier than it should have). This overwrites the VLAN tag by moving the Ethernet source and destination MACs 4 bytes to the right. Then skb->data (assumed to be pointing immediately after the EtherType) is temporarily pushed to the beginning of the new Ethernet header, the new Ethernet header offset and length are recorded, then skb->data is moved back to where it was. Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/sja1105')
0 files changed, 0 insertions, 0 deletions