|
iPXE
|
Infiniband Subnet Management Agent. More...
#include <stdint.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <stdio.h>#include <unistd.h>#include <byteswap.h>#include <ipxe/settings.h>#include <ipxe/infiniband.h>#include <ipxe/iobuf.h>#include <ipxe/ib_mi.h>#include <ipxe/ib_sma.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static void | ib_sma_node_info (struct ib_device *ibdev, struct ib_mad_interface *mi, union ib_mad *mad, struct ib_address_vector *av) |
| Node information. | |
| static void | ib_sma_node_desc (struct ib_device *ibdev, struct ib_mad_interface *mi, union ib_mad *mad, struct ib_address_vector *av) |
| Node description. | |
| static void | ib_sma_guid_info (struct ib_device *ibdev, struct ib_mad_interface *mi, union ib_mad *mad, struct ib_address_vector *av) |
| GUID information. | |
| static int | ib_sma_set_port_info (struct ib_device *ibdev, struct ib_mad_interface *mi, union ib_mad *mad) |
| Set port information. | |
| static void | ib_sma_port_info (struct ib_device *ibdev, struct ib_mad_interface *mi, union ib_mad *mad, struct ib_address_vector *av) |
| Port information. | |
| static int | ib_sma_set_pkey_table (struct ib_device *ibdev, struct ib_mad_interface *mi, union ib_mad *mad) |
| Set partition key table. | |
| static void | ib_sma_pkey_table (struct ib_device *ibdev, struct ib_mad_interface *mi, union ib_mad *mad, struct ib_address_vector *av) |
| Partition key table. | |
| int | ib_create_sma (struct ib_device *ibdev, struct ib_mad_interface *mi) |
| Create subnet management agent and interface. | |
| void | ib_destroy_sma (struct ib_device *ibdev __unused, struct ib_mad_interface *mi __unused) |
| Destroy subnet management agent and interface. | |
Variables | |
| struct ib_mad_agent ib_sma_agent[] | __ib_mad_agent |
| Subnet management agent. | |
Infiniband Subnet Management Agent.
Definition in file ib_sma.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Node information.
| ibdev | Infiniband device |
| mi | Management interface |
| mad | Received MAD |
| av | Source address vector |
Definition at line 54 of file ib_sma.c.
References DBGC, ib_device::gid, ib_gid::guid, htons, IB_MGMT_BASE_VERSION, IB_MGMT_METHOD_GET_RESP, ib_mi_send(), IB_NODE_TYPE_HCA, IB_SMP_CLASS_VERSION, mad, memcpy(), memset(), ib_device::node_guid, node_info, ib_device::port, ib_device::ports, rc, ib_gid::s, and strerror().
|
static |
Node description.
| ibdev | Infiniband device |
| mi | Management interface |
| mad | Received MAD |
| av | Source address vector |
Definition at line 93 of file ib_sma.c.
References DBGC, ib_device::dev, fetch_string_setting(), guid, IB_MGMT_METHOD_GET_RESP, ib_mi_send(), mad, memset(), device::name, node_desc, ib_device::node_guid, NULL, rc, snprintf(), and strerror().
|
static |
GUID information.
| ibdev | Infiniband device |
| mi | Management interface |
| mad | Received MAD |
| av | Source address vector |
Definition at line 131 of file ib_sma.c.
References DBGC, ib_device::gid, ib_gid::guid, guid_info, IB_MGMT_METHOD_GET_RESP, ib_mi_send(), mad, memcpy(), memset(), rc, ib_gid::s, and strerror().
|
static |
Set port information.
| ibdev | Infiniband device |
| mi | Management interface |
| mad | Received MAD |
| rc | Return status code |
Definition at line 160 of file ib_sma.c.
References DBGC, ib_device::gid, ib_set_port_info(), ib_device::lid, ib_device::link_speed_enabled, ib_device::link_width_enabled, link_width_enabled, mad, memcpy(), ntohs, port_info, ib_gid::prefix, rc, ib_gid::s, ib_device::sm_lid, ib_device::sm_sl, and strerror().
Referenced by ib_sma_port_info().
|
static |
Port information.
| ibdev | Infiniband device |
| mi | Management interface |
| mad | Received MAD |
| av | Source address vector |
Definition at line 201 of file ib_sma.c.
References DBGC, ib_device::gid, htons, IB_MGMT_METHOD_GET_RESP, IB_MGMT_METHOD_SET, IB_MGMT_STATUS_UNSUPPORTED_METHOD_ATTR, ib_mi_send(), IB_MTU_2048, IB_PORT_PHYS_STATE_POLLING, ib_sma_set_port_info(), IB_VL_0, ib_device::lid, ib_device::link_speed_active, ib_device::link_speed_enabled, ib_device::link_speed_supported, ib_device::link_width_active, ib_device::link_width_enabled, ib_device::link_width_supported, mad, memcpy(), memset(), ntohs, ib_device::port, port_info, ib_device::port_state, ib_gid::prefix, rc, ib_gid::s, ib_device::sm_lid, ib_device::sm_sl, and strerror().
|
static |
Set partition key table.
| ibdev | Infiniband device |
| mi | Management interface |
| mad | Received MAD |
| rc | Return status code |
Definition at line 259 of file ib_sma.c.
References DBGC, ib_set_pkey_table(), mad, ntohs, ib_device::pkey, pkey_table, rc, and strerror().
Referenced by ib_sma_pkey_table().
|
static |
Partition key table.
| ibdev | Infiniband device |
| mi | Management interface |
| mad | Received MAD |
| av | Source address vector |
Definition at line 287 of file ib_sma.c.
References DBGC, htons, IB_MGMT_METHOD_GET_RESP, IB_MGMT_METHOD_SET, IB_MGMT_STATUS_UNSUPPORTED_METHOD_ATTR, ib_mi_send(), ib_sma_set_pkey_table(), mad, memset(), ib_device::pkey, pkey_table, rc, and strerror().
| int ib_create_sma | ( | struct ib_device * | ibdev, |
| struct ib_mad_interface * | mi ) |
Create subnet management agent and interface.
| ibdev | Infiniband device |
| mi | Management interface |
| rc | Return status code |
Definition at line 358 of file ib_sma.c.
References DBGC, and ib_device::name.
Referenced by ib_open().
| void ib_destroy_sma | ( | struct ib_device *ibdev | __unused, |
| struct ib_mad_interface *mi | __unused ) |
Destroy subnet management agent and interface.
| ibdev | Infiniband device |
| mi | Management interface |
Definition at line 372 of file ib_sma.c.
References __unused.
Referenced by ib_close(), and ib_open().
| struct ib_mad_agent ib_sma_agent [] __ib_mad_agent |
Subnet management agent.
Definition at line 318 of file ib_sma.c.