* [PATCH librdmacm] [TRIVIAL] cma: In ucma_convert_path, fix selector values
@ 2014-06-19 17:08 Hal Rosenstock
[not found] ` <53A318F2.2030601-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2014-06-19 17:08 UTC (permalink / raw)
To: Hefty, Sean
Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
Intent is for the selectors to be equal to (exactly) rather than less than.
Selector for exactly is value of 2 rather than 1.
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/src/cma.c b/src/cma.c
index bedc95f..a2543f2 100644
--- a/src/cma.c
+++ b/src/cma.c
@@ -701,11 +701,11 @@ static void ucma_convert_path(struct ibv_path_data *path_data,
sa_path->numb_path = 1;
sa_path->pkey = path_data->path.pkey;
sa_path->sl = ntohs(path_data->path.qosclass_sl) & 0xF;
- sa_path->mtu_selector = 1;
+ sa_path->mtu_selector = 2; /* exactly */
sa_path->mtu = path_data->path.mtu & 0x1F;
- sa_path->rate_selector = 1;
+ sa_path->rate_selector = 2;
sa_path->rate = path_data->path.rate & 0x1F;
- sa_path->packet_life_time_selector = 1;
+ sa_path->packet_life_time_selector = 2;
sa_path->packet_life_time = path_data->path.packetlifetime & 0x1F;
sa_path->preference = (uint8_t) path_data->flags;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-20 17:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-19 17:08 [PATCH librdmacm] [TRIVIAL] cma: In ucma_convert_path, fix selector values Hal Rosenstock
[not found] ` <53A318F2.2030601-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2014-06-20 17:52 ` Hefty, Sean
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox