]> 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)
commit09650613aac53baae4922ea637ad7fa2412dbddf
treeee79208e8c8d5df36511dfcdcd2d674c2d8d28f0
parentb204103fbcc090e2863c7813132a9e7975ee2166
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