OSDN Git Service

net/mlx5e: Fix page allocation failure for ptp-RQ over SF
authorAya Levin <ayal@nvidia.com>
Tue, 22 Jun 2021 07:24:17 +0000 (10:24 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 27 Jul 2021 23:10:05 +0000 (16:10 -0700)
commit678b1ae1af4aef488fcc42baa663e737b9a531ba
treeb2250b54a1a1ce21f7a133abde95dc96bcc3adaa
parent497008e783452a2ec45c7ec5835cfe6950dcb097
net/mlx5e: Fix page allocation failure for ptp-RQ over SF

Set the correct pci-device pointer to the ptp-RQ. This allows access to
dma_mask and avoids allocation request with wrong pci-device.

Fixes: a099da8ffcf6 ("net/mlx5e: Add RQ to PTP channel")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c