]> git.baikalelectronics.ru Git - kernel.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)
commit8f0b6d05b5b80993966431acb039f85c7a319d2e
treeee79208e8c8d5df36511dfcdcd2d674c2d8d28f0
parentc200491183211c9dad87f69164f3d68c4b0f21a8
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