]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: tag_brcm: Prepare for supporting prepended tag
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 10 Nov 2017 23:22:53 +0000 (15:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Nov 2017 01:34:54 +0000 (10:34 +0900)
commit21a81af1cf0a4870a269b593b5c48fe3568559b6
tree1babdd4f4841a2a1029a9455838cf2fe9b7c7987
parenta78b6b2a4d4d2d1370c0108ad15a48a68775c384
net: dsa: tag_brcm: Prepare for supporting prepended tag

In preparation for supporting the same Broadcom tag format, but instead
of inserted between the MAC SA and EtherType, prepended to the Ethernet
frame, restructure the code a little bit to make that possible and take
an offset parameter.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_brcm.c