1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/marvell/prestera
Vincent Mailhol 226bf98055 net: devlink: let the core report the driver name instead of the drivers
The driver name is available in device_driver::name. Right now,
drivers still have to report this piece of information themselves in
their devlink_ops::info_get callback function.

In order to factorize code, make devlink_nl_info_fill() add the driver
name attribute.

Now that the core sets the driver name attribute, drivers are not
supposed to call devlink_info_driver_name_put() anymore. Remove
devlink_info_driver_name_put() and clean-up all the drivers using this
function in their callback.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Tested-by: Ido Schimmel <idosch@nvidia.com> # mlxsw
Reviewed-by: Jacob Keller  <jacob.e.keller@intel.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-30 21:49:38 -08:00
..
Kconfig net: marvell: prestera: add phylink support 2022-07-20 10:24:40 +01:00
Makefile net: prestera: acl: extract matchall logic into a separate file 2022-08-26 10:04:54 +01:00
prestera.h net: marvell: prestera: Propagate nh state from hw to kernel 2022-10-03 17:14:53 -07:00
prestera_acl.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-10-03 17:44:18 -07:00
prestera_acl.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-10-03 17:44:18 -07:00
prestera_counter.c net: prestera: add counter HW API 2021-11-30 12:26:01 +00:00
prestera_counter.h net: prestera: add counter HW API 2021-11-30 12:26:01 +00:00
prestera_devlink.c net: devlink: let the core report the driver name instead of the drivers 2022-11-30 21:49:38 -08:00
prestera_devlink.h net: remove unused ndo_get_devlink_port 2022-11-03 20:48:36 -07:00
prestera_dsa.c net: marvell: prestera: devlink: add traps/groups implementation 2021-06-14 13:04:25 -07:00
prestera_dsa.h net: marvell: prestera: devlink: add traps/groups implementation 2021-06-14 13:04:25 -07:00
prestera_ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
prestera_ethtool.h net: marvell: prestera: add phylink support 2022-07-20 10:24:40 +01:00
prestera_flow.c net: prestera: manage matchall and flower priorities 2022-08-26 10:04:54 +01:00
prestera_flow.h net: prestera: manage matchall and flower priorities 2022-08-26 10:04:54 +01:00
prestera_flower.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-10-03 17:44:18 -07:00
prestera_flower.h net: prestera: manage matchall and flower priorities 2022-08-26 10:04:54 +01:00
prestera_hw.c net: marvell: prestera: Add router nexthops ABI 2022-10-03 17:14:52 -07:00
prestera_hw.h net: marvell: prestera: Add router nexthops ABI 2022-10-03 17:14:52 -07:00
prestera_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-29 13:04:52 -08:00
prestera_matchall.c prestera: matchall: do not rollback if rule exists 2022-10-07 08:48:34 +01:00
prestera_matchall.h net: prestera: manage matchall and flower priorities 2022-08-26 10:04:54 +01:00
prestera_pci.c net: marvell: prestera: pci: bump supported FW min version 2022-11-11 10:52:55 +00:00
prestera_router.c net: marvell: prestera: Fix a NULL vs IS_ERR() check in some functions 2022-11-29 12:29:46 +01:00
prestera_router_hw.c net: marvell: prestera: Fix a NULL vs IS_ERR() check in some functions 2022-11-29 12:29:46 +01:00
prestera_router_hw.h net: marvell: prestera: Add length macros for prestera_ip_addr 2022-10-03 17:14:53 -07:00
prestera_rxtx.c net: marvell: prestera: fix memory leak in prestera_rxtx_switch_init() 2022-11-08 17:19:23 -08:00
prestera_rxtx.h
prestera_span.c net: prestera: span: do not unbind things things that were never bound 2022-10-10 17:59:53 -07:00
prestera_span.h net: prestera: add support for egress traffic mirroring 2022-08-26 10:04:54 +01:00
prestera_switchdev.c net: marvell: prestera: implement br_port_locked flag offloading 2022-08-24 12:55:47 +01:00
prestera_switchdev.h net: bridge: switchdev: let drivers inform which bridge ports are offloaded 2021-07-22 00:26:23 -07:00