RDMA/core: Use ib_port_state_to_str() for IB state sysfs
authorMaher Sanalla <msanalla@nvidia.com>
Mon, 3 Feb 2025 12:48:05 +0000 (14:48 +0200)
committerLeon Romanovsky <leon@kernel.org>
Thu, 6 Feb 2025 08:40:57 +0000 (03:40 -0500)
commit1fd119c6db838dbed7084ce48f76ad12f5441d59
treec3d99f7c8b1cf18823437894338eca79714dc6f5
parent5459f6523c1f1a053cdc6411a810061ee717219c
RDMA/core: Use ib_port_state_to_str() for IB state sysfs

Refactor the IB state sysfs implementation to replace the local array
used for converting IB state to string with the ib_port_state_to_str()
function.

Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Link: https://patch.msgid.link/06affabbbf144f990e64b447918af39483c78c3e.1738586601.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/sysfs.c