net: dsa: ksz: Factor out common tag code
authorTristram Ha <Tristram.Ha@microchip.com>
Sat, 15 Dec 2018 00:58:05 +0000 (01:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2018 22:23:33 +0000 (14:23 -0800)
commitbafe9ba7d908f6240b3ca898b167072c55502609
treed747dc2813110c32d3c1cfc34e0a7107f8b3f0cf
parent39d6b96f9fc2d99c4619954f462ba32e5d48502e
net: dsa: ksz: Factor out common tag code

Factor out common code from the tag_ksz , so that the code can be used
with other KSZ family switches which use differenly sized tags.

Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Cc: Woojung Huh <woojung.huh@microchip.com>
Cc: David S. Miller <davem@davemloft.net>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_ksz.c