From: Arlin Davis Date: Fri, 15 Mar 2013 21:14:26 +0000 (-0700) Subject: mix: protocol change to v3, reduce sge add inline options X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=ea19457f27fff1b9e7876d4ff8d81147b55a9e87;p=~ardavis%2Fdapl.git mix: protocol change to v3, reduce sge add inline options post send changes to reduce sge entries to 4, add inline options, and remove hard coded wr size. Signed-off-by: Arlin Davis --- diff --git a/dat/include/dat2/dat_mic_extensions.h b/dat/include/dat2/dat_mic_extensions.h index e20df96..e755efd 100755 --- a/dat/include/dat2/dat_mic_extensions.h +++ b/dat/include/dat2/dat_mic_extensions.h @@ -57,7 +57,6 @@ #define DAT_MCM_VER 1 #define DAT_MCM_UD_QKEY 0x78655322 #define DAT_MCM_PDATA_SIZE 64 -#define DAT_MCM_WR 192 /* work request size (ib_wr + 7 sge's), 64 byte aligned */ #define ALIGN_64(o) ((o + 64 - 1) & ~(64-1)) #define ALIGN_P64(o) ((((uintptr_t)o) + 64 - 1)& ~(64-1)) @@ -197,8 +196,9 @@ typedef struct dat_mcm_msg /* Revisions: * v1 - Initial release * v2 - Support 3 separate EP's per device (Operations/CM, unsolicited events, transmit) + * v3 - reduce SGE from 7 to 4, add post_send inline support */ -#define DAT_MIX_VER 2 +#define DAT_MIX_VER 3 #define DAT_MIX_MSG_MAX 256 typedef enum dat_mix_ops @@ -383,8 +383,6 @@ typedef struct dat_mix_qp_attr } dat_mix_qp_attr_t; /* - * todo, move posting WR's to aperture windows ?? - * ok for now since we can post async and queue them up. * For initial prototyping write streams we don't have many * completions. SCIF should be 2x speeds so once we pipeline * it will keep up with IB speeds. @@ -399,6 +397,7 @@ typedef struct dat_mix_qp uint32_t m_len; /* size */ uint32_t m_seg; /* segment size */ uint32_t wr_len; /* size */ + uint32_t m_inline; /* mpxyd inline threshold for SCIF dma */ } dat_mix_qp_t; @@ -458,7 +457,7 @@ typedef struct dat_mix_dto_comp } dat_mix_dto_comp_t; -#define DAT_MIX_SGE_MAX 7 +#define DAT_MIX_SGE_MAX 4 typedef struct dat_mix_send { dat_mix_hdr_t hdr;