netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/7] sfc: devlink support for ef100
@ 2023-01-19 11:31 alejandro.lucero-palau
  2023-01-19 11:31 ` [PATCH net-next 1/7] sfc: add " alejandro.lucero-palau
                   ` (7 more replies)
  0 siblings, 8 replies; 52+ messages in thread
From: alejandro.lucero-palau @ 2023-01-19 11:31 UTC (permalink / raw)
  To: netdev, linux-net-drivers
  Cc: davem, kuba, pabeni, edumazet, habetsm, ecree.xilinx,
	Alejandro Lucero

From: Alejandro Lucero <alejandro.lucero-palau@amd.com>

This patchset adds devlink port support for ef100 allowing setting VFs
mac addresses through the VF representors netdevs.

Basic devlink support is first introduced for info command. Then changes
for enumerating MAE ports which will be used for devlik port creation
when netdevs are register.

Adding support for devlink port_function_hw_addr_get requires changes in
the ef100 driver for getting the mac address based on a client handle.
This allows to obtain VFs mac address during netdev initialization as
well what is included in patch 5.

Such client handle is used in patches 6 and 7 for getting and setting
devlink ports addresses.

Alejandro Lucero (7):
  sfc: add devlink support for ef100
  sfc: enumerate mports in ef100
  sfc: add mport lookup based on driver's mport data
  sfc: add devlink port support for ef100
  sfc: obtain device mac address based on firmware handle for ef100
  sfc: add support for port_function_hw_addr_get devlink in ef100
  sfc: add support for devlink port_function_hw_addr_set in ef100

 drivers/net/ethernet/sfc/Kconfig        |   1 +
 drivers/net/ethernet/sfc/Makefile       |   3 +-
 drivers/net/ethernet/sfc/ef100_netdev.c |  20 +-
 drivers/net/ethernet/sfc/ef100_nic.c    |  96 +++-
 drivers/net/ethernet/sfc/ef100_nic.h    |   7 +
 drivers/net/ethernet/sfc/ef100_rep.c    |  58 ++-
 drivers/net/ethernet/sfc/ef100_rep.h    |   9 +
 drivers/net/ethernet/sfc/efx_devlink.c  | 629 ++++++++++++++++++++++++
 drivers/net/ethernet/sfc/efx_devlink.h  |  27 +
 drivers/net/ethernet/sfc/mae.c          | 212 +++++++-
 drivers/net/ethernet/sfc/mae.h          |  39 ++
 drivers/net/ethernet/sfc/mcdi.c         |  72 +++
 drivers/net/ethernet/sfc/mcdi.h         |  10 +
 drivers/net/ethernet/sfc/net_driver.h   |   7 +
 14 files changed, 1162 insertions(+), 28 deletions(-)
 create mode 100644 drivers/net/ethernet/sfc/efx_devlink.c
 create mode 100644 drivers/net/ethernet/sfc/efx_devlink.h

-- 
2.17.1


^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~2023-01-24 22:13 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 11:31 [PATCH net-next 0/7] sfc: devlink support for ef100 alejandro.lucero-palau
2023-01-19 11:31 ` [PATCH net-next 1/7] sfc: add " alejandro.lucero-palau
2023-01-19 12:14   ` Jiri Pirko
2023-01-19 14:51     ` Lucero Palau, Alejandro
2023-01-19 16:29       ` Lucero Palau, Alejandro
2023-01-20 11:02         ` Jiri Pirko
2023-01-20 11:00       ` Jiri Pirko
2023-01-19 15:50   ` kernel test robot
2023-01-19 17:16   ` Jakub Kicinski
2023-01-19 17:52     ` Lucero Palau, Alejandro
2023-01-19 18:44       ` Jakub Kicinski
2023-01-19 19:08         ` Lucero Palau, Alejandro
2023-01-19 23:40   ` Jacob Keller
2023-01-20 14:11     ` Lucero Palau, Alejandro
2023-01-24  6:13       ` Edward Cree
2023-01-24  7:31         ` Lucero Palau, Alejandro
2023-01-24 11:05     ` Lucero Palau, Alejandro
2023-01-24 22:12       ` Jacob Keller
2023-01-20 13:59   ` kernel test robot
2023-01-19 11:31 ` [PATCH net-next 2/7] sfc: enumerate mports in ef100 alejandro.lucero-palau
2023-01-19 23:48   ` Jacob Keller
2023-01-20 14:13     ` Lucero Palau, Alejandro
2023-01-20 12:47   ` kernel test robot
2023-01-19 11:31 ` [PATCH net-next 3/7] sfc: add mport lookup based on driver's mport data alejandro.lucero-palau
2023-01-19 23:57   ` Jacob Keller
2023-01-20  9:34     ` Lucero Palau, Alejandro
2023-01-20 18:36       ` Keller, Jacob E
2023-01-19 11:31 ` [PATCH net-next 4/7] sfc: add devlink port support for ef100 alejandro.lucero-palau
2023-01-19 12:33   ` Jiri Pirko
2023-01-19 15:03     ` Lucero Palau, Alejandro
2023-01-19 13:37   ` kernel test robot
2023-01-20 21:21   ` kernel test robot
2023-01-19 11:31 ` [PATCH net-next 5/7] sfc: obtain device mac address based on firmware handle " alejandro.lucero-palau
2023-01-19 19:47   ` kernel test robot
2023-01-20  0:03   ` Jacob Keller
2023-01-19 11:31 ` [PATCH net-next 6/7] sfc: add support for port_function_hw_addr_get devlink in ef100 alejandro.lucero-palau
2023-01-19 12:25   ` Jiri Pirko
2023-01-19 14:59     ` Lucero Palau, Alejandro
2023-01-20 11:05       ` Jiri Pirko
2023-01-22 16:41         ` Lucero Palau, Alejandro
2023-01-19 12:37   ` Jiri Pirko
2023-01-19 15:09     ` Lucero Palau, Alejandro
2023-01-20 11:08       ` Jiri Pirko
2023-01-20 12:48         ` Lucero Palau, Alejandro
2023-01-22 16:36           ` Lucero Palau, Alejandro
2023-01-23  8:38             ` Jiri Pirko
2023-01-23  9:45               ` Lucero Palau, Alejandro
2023-01-23 10:18                 ` Jiri Pirko
2023-01-19 11:31 ` [PATCH net-next 7/7] sfc: add support for devlink port_function_hw_addr_set " alejandro.lucero-palau
2023-01-19 12:27   ` Jiri Pirko
2023-01-19 15:10     ` Lucero Palau, Alejandro
2023-01-20  8:55 ` [PATCH net-next 0/7] sfc: devlink support for ef100 Martin Habets

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).