summaryrefslogtreecommitdiffstats
path: root/src/drivers/infiniband/arbel.h
diff options
context:
space:
mode:
authorMichael Brown2016-03-21 09:55:02 +0100
committerMichael Brown2016-03-21 09:55:02 +0100
commit57c63047e3128a72f53c7dfd5eec75985d4345c7 (patch)
treeb36174f6bd68f355c3a8d4051580f58e009ca55c /src/drivers/infiniband/arbel.h
parent[hermon] Allocate space for GRH on UD queue pairs (diff)
downloadipxe-57c63047e3128a72f53c7dfd5eec75985d4345c7.tar.gz
ipxe-57c63047e3128a72f53c7dfd5eec75985d4345c7.tar.xz
ipxe-57c63047e3128a72f53c7dfd5eec75985d4345c7.zip
[arbel] Allocate space for GRH on UD queue pairs
As with the previous commit (for Hermon), allocate a separate ring buffer to hold received GRHs. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/infiniband/arbel.h')
-rw-r--r--src/drivers/infiniband/arbel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/infiniband/arbel.h b/src/drivers/infiniband/arbel.h
index 73394cd9a..8a5a996a3 100644
--- a/src/drivers/infiniband/arbel.h
+++ b/src/drivers/infiniband/arbel.h
@@ -237,7 +237,7 @@ struct arbelprm_rc_send_wqe {
struct arbelprm_wqe_segment_data_ptr data[ARBEL_MAX_GATHER];
} __attribute__ (( packed ));
-#define ARBEL_MAX_SCATTER 1
+#define ARBEL_MAX_SCATTER 2
struct arbelprm_recv_wqe {
/* The autogenerated header is inconsistent between send and
@@ -369,6 +369,10 @@ struct arbel_recv_work_queue {
union arbel_recv_wqe *wqe;
/** Size of work queue */
size_t wqe_size;
+ /** GRH buffers (if applicable) */
+ struct ib_global_route_header *grh;
+ /** Size of GRB buffers */
+ size_t grh_size;
};
/** Number of special queue pairs */