sfc: add devlink port support for ef100
authorAlejandro Lucero <alejandro.lucero-palau@amd.com>
Wed, 15 Feb 2023 09:08:25 +0000 (09:08 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 16 Feb 2023 11:03:12 +0000 (12:03 +0100)
commit25414b2a64ae7ea8742933bd7b1d056e069b15a7
tree99f1d9537482c12d95655a8d2cd655da2b72e4e3
parent5227adff37af35fdc3c6f029737708c2d0921618
sfc: add devlink port support for ef100

Using the data when enumerating mports, create devlink ports just before
netdevs are registered and remove those devlink ports after netdev has
been unregistered.

Signed-off-by: Alejandro Lucero <alejandro.lucero-palau@amd.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/sfc/ef100_netdev.c
drivers/net/ethernet/sfc/ef100_rep.c
drivers/net/ethernet/sfc/ef100_rep.h
drivers/net/ethernet/sfc/efx_devlink.c
drivers/net/ethernet/sfc/efx_devlink.h
drivers/net/ethernet/sfc/mae.h
drivers/net/ethernet/sfc/net_driver.h