/linux/net/switchdev/ |
H A D | switchdev.c | 711 struct switchdev_notifier_port_obj_info *port_obj_info, in __switchdev_handle_port_obj_add() argument 719 struct switchdev_notifier_info *info = &port_obj_info->info; in __switchdev_handle_port_obj_add() 728 err = add_cb(dev, info->ctx, port_obj_info->obj, extack); in __switchdev_handle_port_obj_add() 730 port_obj_info->handled = true; in __switchdev_handle_port_obj_add() 753 err = __switchdev_handle_port_obj_add(lower_dev, port_obj_info, in __switchdev_handle_port_obj_add() 777 return __switchdev_handle_port_obj_add(br, port_obj_info, check_cb, in __switchdev_handle_port_obj_add() 786 struct switchdev_notifier_port_obj_info *port_obj_info, in switchdev_handle_port_obj_add() argument 794 err = __switchdev_handle_port_obj_add(dev, port_obj_info, check_cb, in switchdev_handle_port_obj_add() 807 struct switchdev_notifier_port_obj_info *port_obj_info, in switchdev_handle_port_obj_add_foreign() argument 817 err = __switchdev_handle_port_obj_add(dev, port_obj_info, check_c in switchdev_handle_port_obj_add_foreign() 826 __switchdev_handle_port_obj_del(struct net_device * dev,struct switchdev_notifier_port_obj_info * port_obj_info,bool (* check_cb)(const struct net_device * dev),bool (* foreign_dev_check_cb)(const struct net_device * dev,const struct net_device * foreign_dev),int (* del_cb)(struct net_device * dev,const void * ctx,const struct switchdev_obj * obj)) __switchdev_handle_port_obj_del() argument 897 switchdev_handle_port_obj_del(struct net_device * dev,struct switchdev_notifier_port_obj_info * port_obj_info,bool (* check_cb)(const struct net_device * dev),int (* del_cb)(struct net_device * dev,const void * ctx,const struct switchdev_obj * obj)) switchdev_handle_port_obj_del() argument 917 switchdev_handle_port_obj_del_foreign(struct net_device * dev,struct switchdev_notifier_port_obj_info * port_obj_info,bool (* check_cb)(const struct net_device * dev),bool (* foreign_dev_check_cb)(const struct net_device * dev,const struct net_device * foreign_dev),int (* del_cb)(struct net_device * dev,const void * ctx,const struct switchdev_obj * obj)) switchdev_handle_port_obj_del_foreign() argument [all...] |
/linux/include/net/ |
H A D | switchdev.h | 342 struct switchdev_notifier_port_obj_info *port_obj_info, 348 struct switchdev_notifier_port_obj_info *port_obj_info, 356 struct switchdev_notifier_port_obj_info *port_obj_info, 361 struct switchdev_notifier_port_obj_info *port_obj_info, 473 struct switchdev_notifier_port_obj_info *port_obj_info, in switchdev_handle_port_obj_add() argument 483 struct switchdev_notifier_port_obj_info *port_obj_info, in switchdev_handle_port_obj_add_foreign() argument 496 struct switchdev_notifier_port_obj_info *port_obj_info, in switchdev_handle_port_obj_del() argument 506 struct switchdev_notifier_port_obj_info *port_obj_info, in switchdev_handle_port_obj_del_foreign() argument
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
H A D | bridge.c | 215 struct switchdev_notifier_port_obj_info *port_obj_info, in mlx5_esw_bridge_port_obj_add() argument 218 struct netlink_ext_ack *extack = switchdev_notifier_info_to_extack(&port_obj_info->info); in mlx5_esw_bridge_port_obj_add() 219 const struct switchdev_obj *obj = port_obj_info->obj; in mlx5_esw_bridge_port_obj_add() 229 port_obj_info->handled = true; in mlx5_esw_bridge_port_obj_add() 250 struct switchdev_notifier_port_obj_info *port_obj_info, in mlx5_esw_bridge_port_obj_del() argument 253 const struct switchdev_obj *obj = port_obj_info->obj; in mlx5_esw_bridge_port_obj_del() 262 port_obj_info->handled = true; in mlx5_esw_bridge_port_obj_del()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_switchdev.c | 404 struct switchdev_notifier_port_obj_info *port_obj_info = ptr; in mlxsw_sp_bridge_port_replay_switchdev_objs() local 405 struct netlink_ext_ack *extack = port_obj_info->info.extack; in mlxsw_sp_bridge_port_replay_switchdev_objs() 409 rso = (void *)port_obj_info->info.ctx; in mlxsw_sp_bridge_port_replay_switchdev_objs() 427 if (port_obj_info->obj->id == SWITCHDEV_OBJ_ID_PORT_VLAN) { in mlxsw_sp_bridge_port_replay_switchdev_objs() 428 u16 vid = SWITCHDEV_OBJ_PORT_VLAN(port_obj_info->obj)->vid; in mlxsw_sp_bridge_port_replay_switchdev_objs() 437 port_obj_info->obj, extack); in mlxsw_sp_bridge_port_replay_switchdev_objs() 452 struct switchdev_notifier_port_obj_info *port_obj_info = ptr; in mlxsw_sp_bridge_port_unreplay_switchdev_objs() local 455 rso = (void *)port_obj_info->info.ctx; in mlxsw_sp_bridge_port_unreplay_switchdev_objs() 464 port_obj_info->obj); in mlxsw_sp_bridge_port_unreplay_switchdev_objs() 3961 port_obj_info) in mlxsw_sp_switchdev_vxlan_vlans_add() 3960 mlxsw_sp_switchdev_vxlan_vlans_add(struct net_device * vxlan_dev,struct switchdev_notifier_port_obj_info * port_obj_info) mlxsw_sp_switchdev_vxlan_vlans_add() argument 3998 mlxsw_sp_switchdev_vxlan_vlans_del(struct net_device * vxlan_dev,struct switchdev_notifier_port_obj_info * port_obj_info) mlxsw_sp_switchdev_vxlan_vlans_del() argument 4030 mlxsw_sp_switchdev_handle_vxlan_obj_add(struct net_device * vxlan_dev,struct switchdev_notifier_port_obj_info * port_obj_info) mlxsw_sp_switchdev_handle_vxlan_obj_add() argument 4049 mlxsw_sp_switchdev_handle_vxlan_obj_del(struct net_device * vxlan_dev,struct switchdev_notifier_port_obj_info * port_obj_info) mlxsw_sp_switchdev_handle_vxlan_obj_del() argument [all...] |
/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch.c | 2372 struct switchdev_notifier_port_obj_info *port_obj_info) in dpaa2_switch_port_obj_event() argument 2381 err = dpaa2_switch_port_obj_add(netdev, port_obj_info->obj); in dpaa2_switch_port_obj_event() 2384 err = dpaa2_switch_port_obj_del(netdev, port_obj_info->obj); in dpaa2_switch_port_obj_event() 2388 port_obj_info->handled = true; in dpaa2_switch_port_obj_event()
|