]> git.baikalelectronics.ru Git - kernel.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)
commit2fc29134f78228b0cbae9f688e128dd2be3a4e26
tree06686461295ee66f6c0dea4e7ce66d257e5a00f5
parentbb34cae41a43865694af2cfc0a419b65cc10a1b5
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