]> 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)
commit72d71460b6d20008d3c28c09874f065870073ee3
tree06686461295ee66f6c0dea4e7ce66d257e5a00f5
parentc4ce8bd4dea2e3e24184f320cdf9fba72da796d9
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