net/mlx5e: Move uplink rep init/cleanup code into own functions
authorRoi Dayan <roid@mellanox.com>
Wed, 23 Oct 2019 06:59:36 +0000 (09:59 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 23 Jan 2020 06:28:40 +0000 (22:28 -0800)
commit29b598ddb8d2d401257013c2af5e9f003bf84ec4
treeb3e62fb5e3bb099c3591e5b40ccf02bfceeda1c0
parent4c7cea2f31f1dde9c578e4729e0d34f340052037
net/mlx5e: Move uplink rep init/cleanup code into own functions

Clean up the code and allows to call uplink rep init/cleanup
from different location later.
To be used later for a new uplink representor mode.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Eli Britstein <elibr@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c