]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net/mlx5: Add Representors registration API
authorHadar Hen Zion <hadarh@mellanox.com>
Fri, 1 Jul 2016 11:51:08 +0000 (14:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 18:40:41 +0000 (14:40 -0400)
commit127ea380acc9de16c2cbd57ed99475944c9917ec
treeb509e40f830bdf00166fb120053a1169240f1ffb
parent6bfd390ba5466675f6f02f77a3e957bd4e6075ee
net/mlx5: Add Representors registration API

Introduce E-Switch registration/unregister representors functions.

Those functions are called by the mlx5e driver when the PF NIC is
created upon pci probe action regardless of the E-Switch mode (NONE,
LEGACY or OFFLOADS).

Adding basic E-Switch database that will hold the vport represntors
upon creation.

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
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c