mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
net: dsa: add KSZ9893 switch tagging support
KSZ9893 switch is similar to KSZ9477 switch except the ingress tail tag has 1 byte instead of 2 bytes. The size of the portmap is smaller and so the override and lookup bits are also moved. Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a1c0ed24fe
commit
88b573af91
4 changed files with 38 additions and 0 deletions
|
@ -57,6 +57,7 @@ const struct dsa_device_ops *dsa_device_ops[DSA_TAG_LAST] = {
|
|||
#endif
|
||||
#ifdef CONFIG_NET_DSA_TAG_KSZ9477
|
||||
[DSA_TAG_PROTO_KSZ9477] = &ksz9477_netdev_ops,
|
||||
[DSA_TAG_PROTO_KSZ9893] = &ksz9893_netdev_ops,
|
||||
#endif
|
||||
#ifdef CONFIG_NET_DSA_TAG_LAN9303
|
||||
[DSA_TAG_PROTO_LAN9303] = &lan9303_netdev_ops,
|
||||
|
@ -93,6 +94,7 @@ const char *dsa_tag_protocol_to_str(const struct dsa_device_ops *ops)
|
|||
#endif
|
||||
#ifdef CONFIG_NET_DSA_TAG_KSZ9477
|
||||
[DSA_TAG_PROTO_KSZ9477] = "ksz9477",
|
||||
[DSA_TAG_PROTO_KSZ9893] = "ksz9893",
|
||||
#endif
|
||||
#ifdef CONFIG_NET_DSA_TAG_LAN9303
|
||||
[DSA_TAG_PROTO_LAN9303] = "lan9303",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue