]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5e: IPoIB, Add PKEY child interface nic profile
authorAlex Vesker <valex@mellanox.com>
Thu, 14 Sep 2017 11:08:39 +0000 (14:08 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 14 Oct 2017 18:22:10 +0000 (11:22 -0700)
commit4c6c615e3f308aee26277abebc7d4ffcd9a6abe2
treeee79208e8c8d5df36511dfcdcd2d674c2d8d28f0
parent7e7f4780c3402bd181eea82ca6395013623e4fbf
net/mlx5e: IPoIB, Add PKEY child interface nic profile

Child interface profile will be called to support child interface
specific behaviour. The child code is sparse compared to the parent
since the RX channels are shared between the interfaces.
Creating a septate profile for child and parent will make a smother
code with a better ability for future expansion.
The profile stuct is exposed to the parent using a getter function.

Signed-off-by: Alex Vesker <valex@mellanox.com>
Reviewed-by: Erez Shitrit <erezsh@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c