1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/if_vlan.h>
6 #include <linux/types.h>
7 #include <linux/ethtool.h>
10 struct dsa_loop_vlan {
15 struct dsa_loop_mib_entry {
16 char name[ETH_GSTRING_LEN];
20 enum dsa_loop_mib_counters {
22 DSA_LOOP_PHY_READ_ERR,
23 DSA_LOOP_PHY_WRITE_OK,
24 DSA_LOOP_PHY_WRITE_ERR,
28 struct dsa_loop_port {
29 struct dsa_loop_mib_entry mib[__DSA_LOOP_CNT_MAX];
34 struct dsa_loop_priv {
36 unsigned int port_base;
37 struct dsa_loop_vlan vlans[VLAN_N_VID];
38 struct net_device *netdev;
39 struct dsa_loop_port ports[DSA_MAX_PORTS];
42 #endif /* DSA_LOOP_H */