net/mlx5e: Extendable vport representor netdev private data
authorSaeed Mahameed <saeedm@mellanox.com>
Mon, 24 Apr 2017 09:36:42 +0000 (12:36 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 30 Apr 2017 13:02:48 +0000 (16:02 +0300)
commit1d447a39142e0eaf8526fcb37699e6b8cce5eaa8
tree0f318ea6bbcee9d8efabd4e12bf17aea90bd6432
parentc08bac03d2894113bdb114e66e6ada009defb120
net/mlx5e: Extendable vport representor netdev private data

Make representor netdev private data extendable by adding new struct
"mlx5e_rep_priv" and use it as the rep netdev private data struct
instead of directly pointing to mlx5_eswitch_rep.

Added new en_rep.h header file to contain all representor related
definitions and prototypes, and moved all representor specific logic
into en_rep.c.

Needed for downstream patches to extend representor functionality to
support neighbour update.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
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 [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c