net/mlx5e: Add support for devlink-port in non-representors mode
authorVladyslav Tarasiuk <vladyslavt@mellanox.com>
Wed, 13 Nov 2019 15:19:47 +0000 (17:19 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 28 Feb 2020 00:40:14 +0000 (16:40 -0800)
commitc6acd629eec754a9679f922d51f90e44c769b80c
tree698b88bbf04012fb9bd91f7bd889cedd64988212
parentab8f963a11790ea0a04add0538c5e45887890d46
net/mlx5e: Add support for devlink-port in non-representors mode

Added devlink_port field to mlx5e_priv structure and a callback to
netdev ops to enable devlink to get info about the port. The port
registration happens at driver initialization.

Signed-off-by: Vladyslav Tarasiuk <vladyslavt@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/devlink.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en/devlink.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en_main.c