summaryrefslogtreecommitdiffstats
path: root/include/net/switchdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/switchdev.h')
-rw-r--r--include/net/switchdev.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h
index 5087c06ceb4b..e4f751e19ecf 100644
--- a/include/net/switchdev.h
+++ b/include/net/switchdev.h
@@ -112,17 +112,6 @@ void *switchdev_trans_item_dequeue(struct switchdev_trans *trans);
112 112
113typedef int switchdev_obj_dump_cb_t(struct switchdev_obj *obj); 113typedef int switchdev_obj_dump_cb_t(struct switchdev_obj *obj);
114 114
115/**
116 * struct switchdev_ops - switchdev operations
117 *
118 * @switchdev_port_attr_set: Set a port attribute (see switchdev_attr).
119 */
120struct switchdev_ops {
121 int (*switchdev_port_attr_set)(struct net_device *dev,
122 const struct switchdev_attr *attr,
123 struct switchdev_trans *trans);
124};
125
126enum switchdev_notifier_type { 115enum switchdev_notifier_type {
127 SWITCHDEV_FDB_ADD_TO_BRIDGE = 1, 116 SWITCHDEV_FDB_ADD_TO_BRIDGE = 1,
128 SWITCHDEV_FDB_DEL_TO_BRIDGE, 117 SWITCHDEV_FDB_DEL_TO_BRIDGE,
@@ -226,9 +215,6 @@ int switchdev_handle_port_attr_set(struct net_device *dev,
226 int (*set_cb)(struct net_device *dev, 215 int (*set_cb)(struct net_device *dev,
227 const struct switchdev_attr *attr, 216 const struct switchdev_attr *attr,
228 struct switchdev_trans *trans)); 217 struct switchdev_trans *trans));
229
230#define SWITCHDEV_SET_OPS(netdev, ops) ((netdev)->switchdev_ops = (ops))
231
232#else 218#else
233 219
234static inline void switchdev_deferred_process(void) 220static inline void switchdev_deferred_process(void)
@@ -325,9 +311,6 @@ switchdev_handle_port_attr_set(struct net_device *dev,
325{ 311{
326 return 0; 312 return 0;
327} 313}
328
329#define SWITCHDEV_SET_OPS(netdev, ops) do {} while (0)
330
331#endif 314#endif
332 315
333#endif /* _LINUX_SWITCHDEV_H_ */ 316#endif /* _LINUX_SWITCHDEV_H_ */