[PATCH rdma-next v1 0/3] Print link status when it is changed

From: Leon Romanovsky
Date: Mon Feb 03 2025 - 07:51:13 EST


Changelog:
v1:
* Changed print to include port number
* Don't print anything on change state from NOP
v0: https://lore.kernel.org/all/cover.1737290406.git.leon@xxxxxxxxxx
-----------------------------------------------------------------------

In similar to netdev and hfi1 behavior, add general implementation to
IB/core to print IB port state changes.

"mlx5_core 0000:08:00.0 mlx5_0: Port: 1 Link DOWN"
"mlx5_core 0000:08:00.0 rdmap8s0f0: Port: 2 Link ACTIVE"

Thanks

Maher Sanalla (3):
IB/cache: Add log messages for IB device state changes
RDMA/core: Use ib_port_state_to_str() for IB state sysfs
IB/hfi1: Remove state transition log message and opa_lstate_name()

drivers/infiniband/core/cache.c | 6 ++++++
drivers/infiniband/core/sysfs.c | 14 +-------------
drivers/infiniband/hw/hfi1/chip.c | 18 ------------------
drivers/infiniband/hw/hfi1/chip.h | 1 -
drivers/infiniband/hw/hfi1/driver.c | 2 +-
drivers/infiniband/hw/hfi1/mad.c | 4 ++--
include/rdma/ib_verbs.h | 17 +++++++++++++++++
7 files changed, 27 insertions(+), 35 deletions(-)

--
2.48.1