Message ID | 20230119113140.20208-1-alejandro.lucero-palau@amd.com (mailing list archive) |
---|---|
Headers | show |
Series | sfc: devlink support for ef100 | expand |
Please fix my email address as per the MAINTAINTERS file: habetsm.xilinx@gmail.com On Thu, Jan 19, 2023 at 11:31:33AM +0000, alejandro.lucero-palau@amd.com wrote: > 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 Typo: devlink. > when netdevs are register. .. are registered. > > 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. port in stead of ports. Martin > > 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
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