diff options
author | Vladimir Oltean <olteanv@gmail.com> | 2019-06-08 15:04:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-08 15:20:39 -0700 |
commit | d461933638ae9fa49ad22f60a40de5b3ed414912 (patch) | |
tree | b64fade690f6cf9244260f0640e0e02a1065eb29 /include/linux/pim.h | |
parent | 5e3f847a02aabfecea519d7b2fd48f4d6f551be6 (diff) |
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 'include/linux/pim.h')
0 files changed, 0 insertions, 0 deletions