]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Create NIC global resources only once
authorHadar Hen Zion <hadarh@mellanox.com>
Fri, 1 Jul 2016 11:51:04 +0000 (14:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 18:40:40 +0000 (14:40 -0400)
commit48540b655b6bbb516e54229133e0ac8dec4f802f
treeb0505b5dc1aaf1e52009f5689b0fb60bc0204031
parente8aef104e8cd9de03cd15746cba170cdd80358dc
net/mlx5e: Create NIC global resources only once

To allow creating more than one netdev over the same PCI function, we
change the driver such that global NIC resources are created once and
later be shared amongst all the mlx5e netdevs running over that port.

Move the CQ UAR, PD (pdn), Transport Domain (tdn), MKey resources from
being kept in the mlx5e priv part to a new resources structure
(mlx5e_resources) placed under the mlx5_core device.

This patch doesn't add any new functionality.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@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/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_common.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
include/linux/mlx5/driver.h