Lines Matching refs:net_device
52 struct net_device *orig_dev;
56 void (*complete)(struct net_device *dev, int err, void *priv);
88 struct net_device *orig_dev;
92 void (*complete)(struct net_device *dev, int err, void *priv);
126 struct net_device *p_port;
127 struct net_device *s_port;
185 struct net_device *i_port;
207 struct net_device *dev;
237 struct net_device *dev;
271 static inline struct net_device *
291 int switchdev_bridge_port_offload(struct net_device *brport_dev,
292 struct net_device *dev, const void *ctx,
297 void switchdev_bridge_port_unoffload(struct net_device *brport_dev,
303 int switchdev_port_attr_set(struct net_device *dev,
306 bool switchdev_port_obj_act_is_deferred(struct net_device *dev,
309 int switchdev_port_obj_add(struct net_device *dev,
312 int switchdev_port_obj_del(struct net_device *dev,
317 int call_switchdev_notifiers(unsigned long val, struct net_device *dev,
323 int call_switchdev_blocking_notifiers(unsigned long val, struct net_device *dev,
327 void switchdev_port_fwd_mark_set(struct net_device *dev,
328 struct net_device *group_dev,
331 int switchdev_handle_fdb_event_to_device(struct net_device *dev, unsigned long event,
333 bool (*check_cb)(const struct net_device *dev),
334 bool (*foreign_dev_check_cb)(const struct net_device *dev,
335 const struct net_device *foreign_dev),
336 int (*mod_cb)(struct net_device *dev, struct net_device *orig_dev,
340 int switchdev_handle_port_obj_add(struct net_device *dev,
342 bool (*check_cb)(const struct net_device *dev),
343 int (*add_cb)(struct net_device *dev, const void *ctx,
346 int switchdev_handle_port_obj_add_foreign(struct net_device *dev,
348 bool (*check_cb)(const struct net_device *dev),
349 bool (*foreign_dev_check_cb)(const struct net_device *dev,
350 const struct net_device *foreign_dev),
351 int (*add_cb)(struct net_device *dev, const void *ctx,
354 int switchdev_handle_port_obj_del(struct net_device *dev,
356 bool (*check_cb)(const struct net_device *dev),
357 int (*del_cb)(struct net_device *dev, const void *ctx,
359 int switchdev_handle_port_obj_del_foreign(struct net_device *dev,
361 bool (*check_cb)(const struct net_device *dev),
362 bool (*foreign_dev_check_cb)(const struct net_device *dev,
363 const struct net_device *foreign_dev),
364 int (*del_cb)(struct net_device *dev, const void *ctx,
367 int switchdev_handle_port_attr_set(struct net_device *dev,
369 bool (*check_cb)(const struct net_device *dev),
370 int (*set_cb)(struct net_device *dev, const void *ctx,
376 switchdev_bridge_port_offload(struct net_device *brport_dev, in switchdev_bridge_port_offload()
377 struct net_device *dev, const void *ctx, in switchdev_bridge_port_offload()
387 switchdev_bridge_port_unoffload(struct net_device *brport_dev, in switchdev_bridge_port_unoffload()
398 static inline int switchdev_port_attr_set(struct net_device *dev, in switchdev_port_attr_set()
405 static inline int switchdev_port_obj_add(struct net_device *dev, in switchdev_port_obj_add()
412 static inline int switchdev_port_obj_del(struct net_device *dev, in switchdev_port_obj_del()
429 struct net_device *dev, in call_switchdev_notifiers()
450 struct net_device *dev, in call_switchdev_blocking_notifiers()
458 switchdev_handle_fdb_event_to_device(struct net_device *dev, unsigned long event, in switchdev_handle_fdb_event_to_device()
460 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_fdb_event_to_device()
461 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_fdb_event_to_device()
462 const struct net_device *foreign_dev), in switchdev_handle_fdb_event_to_device()
463 int (*mod_cb)(struct net_device *dev, struct net_device *orig_dev, in switchdev_handle_fdb_event_to_device()
471 switchdev_handle_port_obj_add(struct net_device *dev, in switchdev_handle_port_obj_add()
473 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_add()
474 int (*add_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_add()
481 static inline int switchdev_handle_port_obj_add_foreign(struct net_device *dev, in switchdev_handle_port_obj_add_foreign()
483 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_add_foreign()
484 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_port_obj_add_foreign()
485 const struct net_device *foreign_dev), in switchdev_handle_port_obj_add_foreign()
486 int (*add_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_add_foreign()
494 switchdev_handle_port_obj_del(struct net_device *dev, in switchdev_handle_port_obj_del()
496 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_del()
497 int (*del_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_del()
504 switchdev_handle_port_obj_del_foreign(struct net_device *dev, in switchdev_handle_port_obj_del_foreign()
506 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_del_foreign()
507 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_port_obj_del_foreign()
508 const struct net_device *foreign_dev), in switchdev_handle_port_obj_del_foreign()
509 int (*del_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_del_foreign()
516 switchdev_handle_port_attr_set(struct net_device *dev, in switchdev_handle_port_attr_set()
518 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_attr_set()
519 int (*set_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_attr_set()