]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
[librdmacm,TRIVIAL] cma: In ucma_convert_path, fix selector values
authorHal Rosenstock <hal@dev.mellanox.co.il>
Thu, 19 Jun 2014 17:08:02 +0000 (13:08 -0400)
committerSean Hefty <sean.hefty@intel.com>
Fri, 20 Jun 2014 17:49:24 +0000 (10:49 -0700)
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@mellanox.com>
src/cma.c

index bedc95f1bed73869d3e04875706f4e618ef80141..9a49a5b2854d037b0874350736b5690ed949ebb1 100644 (file)
--- 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;