diff options
| author | Michael Brown | 2010-09-17 06:04:39 +0200 |
|---|---|---|
| committer | Michael Brown | 2010-09-17 23:57:20 +0200 |
| commit | d9aef1b50aba9c51fd2dce493b24e6e85cc9787a (patch) | |
| tree | d0f118bc9e6ef0bce8c9b9e043b9cb8657d3369e /src/drivers/infiniband/arbel.h | |
| parent | [arbel] Optimise ICM layout to reduce overall memory usage (diff) | |
| download | ipxe-d9aef1b50aba9c51fd2dce493b24e6e85cc9787a.tar.gz ipxe-d9aef1b50aba9c51fd2dce493b24e6e85cc9787a.tar.xz ipxe-d9aef1b50aba9c51fd2dce493b24e6e85cc9787a.zip | |
[arbel] Synchronise changes with the Hermon driver
Backport some changes from the Hermon driver to the Arbel driver.
Specifically:
o Rename reserved_lkey to lkey
o Add arbel_rate() to calculate transmission rates
o Structure code to allow for addition of RC queue pairs
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/infiniband/arbel.h')
| -rw-r--r-- | src/drivers/infiniband/arbel.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/drivers/infiniband/arbel.h b/src/drivers/infiniband/arbel.h index 41d639973..45bd3720f 100644 --- a/src/drivers/infiniband/arbel.h +++ b/src/drivers/infiniband/arbel.h @@ -107,6 +107,10 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define ARBEL_LOG_MULTICAST_HASH_SIZE 3 +#define ARBEL_PM_STATE_ARMED 0x00 +#define ARBEL_PM_STATE_REARM 0x01 +#define ARBEL_PM_STATE_MIGRATED 0x03 + /* * Datatypes that seem to be missing from the autogenerated documentation * @@ -469,11 +473,11 @@ struct arbel { struct arbel_event_queue eq; /** Doorbell records */ union arbelprm_doorbell_record *db_rec; - /** Reserved LKey + /** Unrestricted LKey * * Used to get unrestricted memory access. */ - unsigned long reserved_lkey; + unsigned long lkey; /** Completion queue in-use bitmask */ arbel_bitmask_t cq_inuse[ ARBEL_BITMASK_SIZE ( ARBEL_MAX_CQS ) ]; |
