dsa.h (7f4e568dd13e094bb951753bbad23704198ecac3) dsa.h (f8b8b1cd5aadd221742b45eb0ee3c8a80abf036a)
1/*
2 * include/net/dsa.h - Driver for Distributed Switch Architecture switch chips
3 * Copyright (c) 2008-2009 Marvell Semiconductor
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 150 unchanged lines hidden (view full) ---

159 enum dsa_port_mall_action_type type;
160 union {
161 struct dsa_mall_mirror_tc_entry mirror;
162 };
163};
164
165
166struct dsa_port {
1/*
2 * include/net/dsa.h - Driver for Distributed Switch Architecture switch chips
3 * Copyright (c) 2008-2009 Marvell Semiconductor
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 150 unchanged lines hidden (view full) ---

159 enum dsa_port_mall_action_type type;
160 union {
161 struct dsa_mall_mirror_tc_entry mirror;
162 };
163};
164
165
166struct dsa_port {
167 /* A CPU port is physically connected to a master device.
168 * A user port exposed to userspace has a slave device.
169 */
170 union {
171 struct net_device *master;
172 struct net_device *slave;
173 };
174
167 /* CPU port tagging operations used by master or slave devices */
168 const struct dsa_device_ops *tag_ops;
169
170 /* Copies for faster access in master receive hot path */
171 struct dsa_switch_tree *dst;
172 struct sk_buff *(*rcv)(struct sk_buff *skb, struct net_device *dev,
173 struct packet_type *pt);
174
175 struct dsa_switch *ds;
176 unsigned int index;
177 const char *name;
178 struct dsa_port *cpu_dp;
175 /* CPU port tagging operations used by master or slave devices */
176 const struct dsa_device_ops *tag_ops;
177
178 /* Copies for faster access in master receive hot path */
179 struct dsa_switch_tree *dst;
180 struct sk_buff *(*rcv)(struct sk_buff *skb, struct net_device *dev,
181 struct packet_type *pt);
182
183 struct dsa_switch *ds;
184 unsigned int index;
185 const char *name;
186 struct dsa_port *cpu_dp;
179 struct net_device *netdev;
180 struct device_node *dn;
181 unsigned int ageing_time;
182 u8 stp_state;
183 struct net_device *bridge_dev;
184 struct devlink_port devlink_port;
185 /*
186 * Original copy of the master netdev ethtool_ops
187 */

--- 336 unchanged lines hidden ---
187 struct device_node *dn;
188 unsigned int ageing_time;
189 u8 stp_state;
190 struct net_device *bridge_dev;
191 struct devlink_port devlink_port;
192 /*
193 * Original copy of the master netdev ethtool_ops
194 */

--- 336 unchanged lines hidden ---