mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 00:17:57 +03:00
[infiniband] Allow external QPN to differ from real QPN
Most IB hardware seems not to allow allocation of the genuine QPNs 0 and 1, so allow for the externally-visible QPN (as constructed and parsed by ib_packet, where used) to differ from the real hardware-allocated QPN.
This commit is contained in:
@@ -96,8 +96,15 @@ struct ib_queue_pair {
|
||||
struct ib_device *ibdev;
|
||||
/** List of queue pairs on this Infiniband device */
|
||||
struct list_head list;
|
||||
/** Queue Pair Number */
|
||||
/** Queue pair number */
|
||||
unsigned long qpn;
|
||||
/** Externally-visible queue pair number
|
||||
*
|
||||
* This may differ from the real queue pair number (e.g. when
|
||||
* the HCA cannot use the management QPNs 0 and 1 as hardware
|
||||
* QPNs and needs to remap them).
|
||||
*/
|
||||
unsigned long ext_qpn;
|
||||
/** Queue pair type */
|
||||
enum ib_queue_pair_type type;
|
||||
/** Queue key */
|
||||
|
||||
Reference in New Issue
Block a user