]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add query host params command
authorBodong Wang <bodong@mellanox.com>
Wed, 13 Feb 2019 06:55:37 +0000 (22:55 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 14 Feb 2019 20:14:41 +0000 (12:14 -0800)
commit29e17a51f1a0b85fd52c13a6c168e16afcc28adc
tree26e9b66039eb26c87fcb2f1b899d6a9a56b96df0
parent436d7294b8ce842fd63f483a1ad9e8f48c6fb090
net/mlx5: Add query host params command

The QUERY_HOST_PARAMS command is used by an Embedded CPU Physical
Function (ECPF) driver to identify and retrieve information about the
PF on the host side. E.g, number of virtual functions and PCI BDF.

The number of VFs can be changed on the fly, a function is added to
query current number of VFs and will be used in downstream patches.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/ecpf.c
drivers/net/ethernet/mellanox/mlx5/core/ecpf.h
include/linux/mlx5/mlx5_ifc.h