net/mlx5e: NIC netdev init flow cleanup
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 6 Jun 2017 06:12:04 +0000 (09:12 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 7 Aug 2017 07:47:06 +0000 (10:47 +0300)
commit07c9f1e57839c678c867b89aa9dcb2220e579b13
tree7cfcf3b444290b6d371d776b23d91a55ce41fe4a
parent706b35834820715d122a984eba2369cae7bf3abd
net/mlx5e: NIC netdev init flow cleanup

Remove redundant call to unregister vport representor in mlx5e_add error
flow.

Hide the representor priv and eswitch internal structures from en_main.c
as preparation step for downstream patches which would allow building
the driver without support for  representors and eswitch.

Fixes: 6f08a22c5fb2 ("net/mlx5e: Register/unregister vport representors on interface attach/detach")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.h