Centos-kernel-stream-9/drivers/infiniband/core
Kamal Heib a897e5f911 RDMA/core: Support link status events dispatching
JIRA: https://issues.redhat.com/browse/RHEL-78087

commit 1fb0644c3899b2f857b11037b19ed362b67bfe91
Author: Yuyu Li <liyuyu6@huawei.com>
Date:   Fri Nov 22 18:52:58 2024 +0800

    RDMA/core: Support link status events dispatching

    Currently the dispatching of link status events is implemented by
    each RDMA driver independently, and most of them have very similar
    patterns. Add support for this in ib_core so that we can get rid
    of duplicate codes in each driver.

    A new last_port_state is added in ib_port_cache to cache the port
    state of the last link status events dispatching. The original
    port_state in ib_port_cache is not used here because it will be
    updated when ib_dispatch_event() is called, which means it may
    be changed between two link status events, and may lead to a loss
    of event dispatching.

    Some drivers currently have some private stuff in their link status
    events handler in addition to event dispatching, and cannot be
    perfectly integrated into the ib_core handling process. For these
    drivers, add a new ops report_port_event() so that they can keep
    their current processing.

    Finally, events of LAG devices are not supported yet in this patch
    as currently there is no way to obtain ibdev from upper netdev in
    ib_core. This can be a TODO work after the core have more support
    for LAG.

    Signed-off-by: Yuyu Li <liyuyu6@huawei.com>
    Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
    Signed-off-by: Leon Romanovsky <leon@kernel.org>

Signed-off-by: Kamal Heib <kheib@redhat.com>
2025-03-21 14:25:31 -04:00
..
Makefile
addr.c
agent.c RDMA/core: Create GSI QP only when CM is supported 2024-10-07 11:55:54 -04:00
agent.h
cache.c RDMA/core: Remove unused ib_find_exact_cached_pkey 2025-03-21 14:25:31 -04:00
cgroup.c
cm.c IB/cm: Rework sending DREQ when destroying a cm_id 2025-02-04 14:40:53 -05:00
cm_msgs.h
cm_trace.c
cm_trace.h
cma.c RDMA/core: Fix ENODEV error for iWARP test over vlan 2025-02-06 09:33:43 -05:00
cma_configfs.c
cma_priv.h
cma_trace.c
cma_trace.h
core_priv.h RDMA/core: Remove unused declaration rdma_resolve_ip_route() 2024-10-27 19:32:22 -04:00
counters.c
cq.c
device.c RDMA/core: Support link status events dispatching 2025-03-21 14:25:31 -04:00
ib_core_uverbs.c
iwcm.c RDMA/iwcm: Fix WARNING:at_kernel/workqueue.c:#check_flush_dependency 2024-10-07 11:55:54 -04:00
iwcm.h
iwpm_msg.c
iwpm_util.c
iwpm_util.h
lag.c RDMA/core: Remove NULL check before dev_{put, hold} 2024-10-07 11:55:53 -04:00
mad.c RDMA/mad: Simplify an alloc_ordered_workqueue() invocation 2024-10-27 19:32:22 -04:00
mad_priv.h
mad_rmpp.c
mad_rmpp.h
mr_pool.c
multicast.c
netlink.c RDMA/nldev: Add support for RDMA monitoring 2024-10-27 19:32:22 -04:00
nldev.c RDMA/nldev: Set error code in rdma_nl_notify_event 2025-02-06 09:33:43 -05:00
opa_smi.h
packer.c
rdma_core.c RDMA/core: Move ib_uverbs_file struct to uverbs_types.h 2025-02-04 14:40:52 -05:00
rdma_core.h
restrack.c RDMA/core: Add an option to display driver-specific QPs in the rdmatool 2024-10-07 11:55:53 -04:00
restrack.h
roce_gid_mgmt.c RDMA/core: Implement RoCE GID port rescan and export delete function 2024-12-05 10:32:11 -05:00
rw.c RDMA/core: Fix a couple of obvious typos in comments 2024-10-07 11:55:51 -04:00
sa.h
sa_query.c treewide: correct the typo 'retun' 2024-10-27 19:32:22 -04:00
security.c
smi.c
smi.h
sysfs.c
trace.c
ucma.c
ud_header.c RDMA/core: Remove unused ib_ud_header_unpack 2025-03-21 14:25:31 -04:00
umem.c RDMA/core: Fix umem iterator when PAGE_SIZE is greater then HCA pgsz 2024-10-07 11:55:52 -04:00
umem_dmabuf.c RDMA/umem: Introduce an option to revoke DMABUF umem 2024-10-27 19:32:22 -04:00
umem_odp.c
user_mad.c RDMA/core: Create "issm*" device nodes only when SMI is supported 2024-10-07 11:55:54 -04:00
uverbs.h RDMA/core: Move ib_uverbs_file struct to uverbs_types.h 2025-02-04 14:40:52 -05:00
uverbs_cmd.c RDMA/uverbs: Prevent integer overflow issue 2025-01-16 05:54:46 +00:00
uverbs_ioctl.c RDMA/uverbs: Avoid -Wflex-array-member-not-at-end warnings 2024-10-07 11:55:52 -04:00
uverbs_main.c RDMA/core: Provide rdma_user_mmap_disassociate() to disassociate mmap pages 2024-10-27 19:32:22 -04:00
uverbs_marshall.c RDMA/core: Remove unused ib_copy_path_rec_from_user 2025-03-21 14:25:31 -04:00
uverbs_std_types.c
uverbs_std_types_async_fd.c
uverbs_std_types_counters.c
uverbs_std_types_cq.c RDMA: Pass entire uverbs attr bundle to create cq function 2024-10-07 11:55:54 -04:00
uverbs_std_types_device.c
uverbs_std_types_dm.c
uverbs_std_types_flow_action.c
uverbs_std_types_mr.c RDMA: Pass uverbs_attr_bundle as part of '.reg_user_mr_dmabuf' API 2024-10-27 19:32:22 -04:00
uverbs_std_types_qp.c
uverbs_std_types_srq.c
uverbs_std_types_wq.c
uverbs_uapi.c
verbs.c IB/core: add support for draining Shared receive queues 2024-10-07 11:55:53 -04:00