aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2023-06-12 15:31:05 +0000
committerPaolo Abeni <[email protected]>2023-06-14 11:12:20 +0000
commit532b6e2bbc190c899086da5be1fd83e69fb41c12 (patch)
treed5fa816d944e4ace274c75c72618c0c33cc3a9cc /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
parentmlxsw: spectrum_router: Access nh->rif->dev through a helper (diff)
downloadkernel-532b6e2bbc190c899086da5be1fd83e69fb41c12.tar.gz
kernel-532b6e2bbc190c899086da5be1fd83e69fb41c12.zip
mlxsw: spectrum_router: Access nhgi->rif through a helper
To abstract away deduction of RIF from the corresponding next hop group info (NHGI), mlxsw currently uses a macro. In its current form, that macro is impossible to extend to more general computation. Therefore introduce a helper, mlxsw_sp_nhgi_rif(), and use it throughout. This will make it possible to change the deduction path easily later on. Signed-off-by: Petr Machata <[email protected]> Reviewed-by: Amit Cohen <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c')
0 files changed, 0 insertions, 0 deletions