diff options
-rw-r--r-- | include/net/dsa.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 7828ebf99ee1..6efce384451e 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h | |||
@@ -181,6 +181,11 @@ struct dsa_switch_driver { | |||
181 | void register_switch_driver(struct dsa_switch_driver *type); | 181 | void register_switch_driver(struct dsa_switch_driver *type); |
182 | void unregister_switch_driver(struct dsa_switch_driver *type); | 182 | void unregister_switch_driver(struct dsa_switch_driver *type); |
183 | 183 | ||
184 | static inline void *ds_to_priv(struct dsa_switch *ds) | ||
185 | { | ||
186 | return (void *)(ds + 1); | ||
187 | } | ||
188 | |||
184 | /* | 189 | /* |
185 | * The original DSA tag format and some other tag formats have no | 190 | * The original DSA tag format and some other tag formats have no |
186 | * ethertype, which means that we need to add a little hack to the | 191 | * ethertype, which means that we need to add a little hack to the |