kernel-hacking-2024-linux-s.../include/rdma
Nir Muchtar 753f618ae0 RDMA/cma: Add support for netlink statistics export
Add callbacks and data types for statistics export of all current
devices/ids.  The schema for RDMA CM is a series of netlink messages.
Each one contains an rdma_cm_stat struct.  Additionally, two netlink
attributes are created for the addresses for each message (if
applicable).

Their types used are:
RDMA_NL_RDMA_CM_ATTR_SRC_ADDR (The source address for this ID)
RDMA_NL_RDMA_CM_ATTR_DST_ADDR (The destination address for this ID)
sockaddr_* structs are encapsulated within these attributes.

In other words, every transaction contains a series of messages like:

-------message 1-------
struct rdma_cm_id_stats {
       __u32 qp_num;
       __u32 bound_dev_if;
       __u32 port_space;
       __s32 pid;
       __u8 cm_state;
       __u8 node_type;
       __u8 port_num;
       __u8 reserved;
}
RDMA_NL_RDMA_CM_ATTR_SRC_ADDR attribute - contains the source address
RDMA_NL_RDMA_CM_ATTR_DST_ADDR attribute - contains the destination address
-------end 1-------
-------message 2-------
struct rdma_cm_id_stats
RDMA_NL_RDMA_CM_ATTR_SRC_ADDR attribute
RDMA_NL_RDMA_CM_ATTR_DST_ADDR attribute
-------end 2-------

Signed-off-by: Nir Muchtar <nirm@voltaire.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2011-05-25 13:46:23 -07:00
..
ib_addr.h IB/core: Add VLAN support for IBoE 2010-10-25 10:20:39 -07:00
ib_cache.h
ib_cm.h
ib_fmr_pool.h
ib_mad.h
ib_marshall.h
ib_pack.h IB/core: Add VLAN support for IBoE 2010-10-25 10:20:39 -07:00
ib_sa.h
ib_smi.h
ib_umem.h
ib_user_cm.h RDMA: Update exported headers list 2011-05-25 13:46:23 -07:00
ib_user_mad.h
ib_user_sa.h
ib_user_verbs.h
ib_verbs.h RDMA: Update workqueue usage 2011-01-16 21:16:31 -08:00
iw_cm.h RDMA/iwcm: Get rid of enum iw_cm_event_status 2011-05-09 22:23:57 -07:00
Kbuild RDMA: Update exported headers list 2011-05-25 13:46:23 -07:00
rdma_cm.h RDMA/cma: Pass QP type into rdma_create_id() 2011-05-25 13:46:23 -07:00
rdma_cm_ib.h
rdma_netlink.h RDMA/cma: Add support for netlink statistics export 2011-05-25 13:46:23 -07:00
rdma_user_cm.h RDMA/cma: Add an ID_REUSEADDR option 2011-05-09 22:06:10 -07:00