]> git.ipfire.org Git - thirdparty/linux.git/commit
RDMA/mlx5: Refactor _get_prio() function
authorPatrisious Haddad <phaddad@nvidia.com>
Wed, 29 Oct 2025 15:42:58 +0000 (17:42 +0200)
committerLeon Romanovsky <leon@kernel.org>
Sun, 9 Nov 2025 10:21:42 +0000 (05:21 -0500)
commitf277662b734e96bf38ce7d422b091f53df3ff8cb
treed360361c5ceabd812ef7d274d68fc093d2d6ec94
parent5939decc64f6b9099c2c356d75047c66a6639e00
RDMA/mlx5: Refactor _get_prio() function

Refactor the _get_prio() function to remove redundant arguments by
reusing the existing flow table attributes struct instead of passing
attributes separately. This improves code clarity and maintainability.

In addition allows downstream patch to add new parameter without
needing to change __get_prio() arguments.

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Signed-off-by: Edward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/20251029-support-other-eswitch-v1-6-98bb707b5d57@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/fs.c