]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: Support disabling host PFs
authorDaniel Jurgens <danielj@nvidia.com>
Wed, 13 Aug 2025 19:19:56 +0000 (22:19 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Aug 2025 19:29:08 +0000 (12:29 -0700)
commit520369ef43a8504f9d54ee219bb6c692d2e40028
tree9b472f810411effc4c63cbdbd626815b2d0c13a1
parent9e84de72aef9bcf0e751a0bff3ac91b0cf52366f
net/mlx5: Support disabling host PFs

Some devices support disabling the physical function on the host. When
this is configured the vports for the host functions do not exist.

This patch checks if host functions are enabled before trying to access
their vports.

Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Reviewed-by: William Tu <witu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1755112796-467444-3-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
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