Infiniband device management.
Definition in file ibmgmt.h.
Print status of Infiniband device.
- Parameters
-
Definition at line 44 of file ibmgmt.c.
44 {
46
54 } else {
56 }
58 printf (
" QPN %#lx send %d/%d recv %d/%d %s\n",
59 qp->qpn,
qp->send.fill,
qp->send.num_wqes,
60 qp->recv.fill,
qp->recv.num_wqes,
qp->name );
61 }
62}
struct arbelprm_qp_db_record qp
#define IB_GUID_FMT
Infiniband Globally Unique Identifier debug message format.
#define IB_GUID_ARGS(guid)
Infiniband Globally Unique Identifier debug message arguments.
static __always_inline int ib_link_ok(struct ib_device *ibdev)
Check link state of Infiniband device.
static int ib_is_open(struct ib_device *ibdev)
Check whether or not Infiniband device is open.
#define list_for_each_entry(pos, head, member)
Iterate over entries in a list.
const char * driver_name
Driver name.
char name[IBDEV_NAME_LEN]
Name of this Infiniband device.
struct device * dev
Underlying device.
struct list_head qps
List of queue pairs.
uint8_t port_state
Port state.
union ib_gid gid
Port GID (comprising GID prefix and port GUID)
unsigned int port
Port number.
An Infiniband Queue Pair.
struct list_head list
List of queue pairs on this Infiniband device.
struct ib_device * ibdev
Containing Infiniband device.
struct ib_gid::@251011351113275240012301235177256303262052134237 s
int printf(const char *fmt,...)
Write a formatted string to the console.
References ib_device::dev, device::driver_name, ib_device::gid, ib_gid::guid, IB_GUID_ARGS, IB_GUID_FMT, ib_is_open(), ib_link_ok(), ib_queue_pair::ibdev, ib_device::lid, ib_queue_pair::list, list_for_each_entry, device::name, ib_device::name, ib_device::port, ib_device::port_state, ib_gid::prefix, printf(), qp, ib_device::qps, and ib_gid::s.
Referenced by COMMAND(), and ibstat_exec().