]> git.karo-electronics.de Git - linux-beck.git/commit
net/mlx5e: Add support for multiple profiles
authorHadar Hen Zion <hadarh@mellanox.com>
Fri, 1 Jul 2016 11:51:07 +0000 (14:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 18:40:41 +0000 (14:40 -0400)
commit6bfd390ba5466675f6f02f77a3e957bd4e6075ee
tree06686461295ee66f6c0dea4e7ce66d257e5a00f5
parent398f33511e97aad7f259e864a1596fc8ef559dc1
net/mlx5e: Add support for multiple profiles

To allow support in representor netdevices where we create more than one
netdevice per NIC, add profiles to the mlx5e driver. The profiling
allows for creation of mlx5e instances with different characteristics.

Each profile implements its own behavior using set of function pointers
defined in struct mlx5e_profile. This is done to allow for avoiding complex
per profix branching in the code.

Currently only the profile for the conventional NIC is implemented,
which is of use when a netdev is created upon pci probe.

This patch doesn't add any new functionality.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c