]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
IB/core: Add async event on device speed change
authorOr Har-Toov <ohartoov@nvidia.com>
Thu, 18 Dec 2025 15:58:26 +0000 (17:58 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 5 Jan 2026 07:42:43 +0000 (02:42 -0500)
Add IB_EVENT_DEVICE_SPEED_CHANGE for notifying user applications on
device's ports speed changes.

Signed-off-by: Or Har-Toov <ohartoov@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Edward Srouji <edwards@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h

index 11b1a194de4438a56e524f09201256851ef60db8..f495a2182c84553e938245d309e9ddb691e9b98a 100644 (file)
@@ -78,6 +78,7 @@ static const char * const ib_events[] = {
        [IB_EVENT_QP_LAST_WQE_REACHED]  = "last WQE reached",
        [IB_EVENT_CLIENT_REREGISTER]    = "client reregister",
        [IB_EVENT_GID_CHANGE]           = "GID changed",
+       [IB_EVENT_DEVICE_SPEED_CHANGE]  = "device speed change"
 };
 
 const char *__attribute_const__ ib_event_msg(enum ib_event_type event)
index 6aad66bc5dd7438e032247aef93164d4782b6b3a..95f1e557cbb8091a4c894622ad45f139af17215f 100644 (file)
@@ -764,6 +764,7 @@ enum ib_event_type {
        IB_EVENT_CLIENT_REREGISTER,
        IB_EVENT_GID_CHANGE,
        IB_EVENT_WQ_FATAL,
+       IB_EVENT_DEVICE_SPEED_CHANGE,
 };
 
 const char *__attribute_const__ ib_event_msg(enum ib_event_type event);