summaryrefslogtreecommitdiff
path: root/include/linux/path.h
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2023-06-12 18:31:05 +0300
committerPaolo Abeni <pabeni@redhat.com>2023-06-14 14:12:20 +0300
commit532b6e2bbc190c899086da5be1fd83e69fb41c12 (patch)
treed5fa816d944e4ace274c75c72618c0c33cc3a9cc /include/linux/path.h
parent69f4ba177d6bb863925e586fa15bd0d454a875d7 (diff)
downloadlinux-532b6e2bbc190c899086da5be1fd83e69fb41c12.tar.xz
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 <petrm@nvidia.com> Reviewed-by: Amit Cohen <amcohen@nvidia.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/path.h')
0 files changed, 0 insertions, 0 deletions