diff options
| author | Michael Brown | 2009-07-06 21:31:44 +0200 |
|---|---|---|
| committer | Michael Brown | 2009-07-18 00:06:33 +0200 |
| commit | 365b8db5cfc9c53c259ca128bd14a0d3b5bf640b (patch) | |
| tree | f4bd846f4d32d449cef69301af8531331080a4a9 /src/include/gpxe | |
| parent | [infiniband] Poll completion queues automatically (diff) | |
| download | ipxe-365b8db5cfc9c53c259ca128bd14a0d3b5bf640b.tar.gz ipxe-365b8db5cfc9c53c259ca128bd14a0d3b5bf640b.tar.xz ipxe-365b8db5cfc9c53c259ca128bd14a0d3b5bf640b.zip | |
[infiniband] Centralise SMA and GMA queue constants
Diffstat (limited to 'src/include/gpxe')
| -rw-r--r-- | src/include/gpxe/ib_packet.h | 6 | ||||
| -rw-r--r-- | src/include/gpxe/infiniband.h | 19 |
2 files changed, 14 insertions, 11 deletions
diff --git a/src/include/gpxe/ib_packet.h b/src/include/gpxe/ib_packet.h index fb9591261..a014352ea 100644 --- a/src/include/gpxe/ib_packet.h +++ b/src/include/gpxe/ib_packet.h @@ -106,12 +106,6 @@ enum ib_bth_opcode { BTH_OPCODE_UD_SEND = 0x64, }; -/** Default Infiniband partition key */ -#define IB_PKEY_NONE 0xffff - -/** Subnet management queue pair number */ -#define IB_QPN_SMP 0 - /** An Infiniband Datagram Extended Transport Header */ struct ib_datagram_extended_transport_header { /** Queue key */ diff --git a/src/include/gpxe/infiniband.h b/src/include/gpxe/infiniband.h index 41c55ac55..be22b7fe1 100644 --- a/src/include/gpxe/infiniband.h +++ b/src/include/gpxe/infiniband.h @@ -15,14 +15,23 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <gpxe/ib_packet.h> #include <gpxe/ib_mad.h> -/** Subnet administrator QPN */ -#define IB_SA_QPN 1 +/** Subnet management QPN */ +#define IB_QPN_SMA 0 + +/** Subnet management queue key */ +#define IB_QKEY_SMA 0 + +/** General management QPN */ +#define IB_QPN_GMA 1 + +/** General management queue key */ +#define IB_QKEY_GMA 0x80010000UL /** Broadcast QPN */ -#define IB_BROADCAST_QPN 0xffffffUL +#define IB_QPN_BROADCAST 0xffffffUL -/** Subnet administrator queue key */ -#define IB_GLOBAL_QKEY 0x80010000UL +/** Default Infiniband partition key */ +#define IB_PKEY_NONE 0xffff /** * Maximum payload size |
