]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5: Limit scope of mlx5_get_next_phys_dev() to PCI PF devices
authorParav Pandit <parav@mellanox.com>
Fri, 28 Jun 2019 22:36:02 +0000 (22:36 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 1 Jul 2019 23:40:30 +0000 (16:40 -0700)
commit7e26dac28101ef1ae8fb500abc8acd1ba1ab4d17
treec9bb671d5e11de67f49ae4f41d65b52d292126a2
parentd22663edacdfb292e7132989de93bf2828cac493
net/mlx5: Limit scope of mlx5_get_next_phys_dev() to PCI PF devices

As mlx5_get_next_phys_dev is used only for PCI PF devices use case,
limit it to search only for PCI devices.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Vu Pham <vuhuong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/dev.c