rdma.c (a1ff5a7d78a036d6c2178ee5acd6ba4946243800) | rdma.c (03c3d7c74371a46d967fbf41628874ec04ddda96) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * NVMe over Fabrics RDMA host code. 4 * Copyright (c) 2015-2016 HGST, a Western Digital Company. 5 */ 6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 7#include <linux/module.h> 8#include <linux/init.h> --- 1862 unchanged lines hidden (view full) --- 1871 } else { 1872 /* 1873 * current interpretation of the fabrics spec 1874 * is at minimum you make hrqsize sqsize+1, or a 1875 * 1's based representation of sqsize. 1876 */ 1877 priv.hrqsize = cpu_to_le16(queue->queue_size); 1878 priv.hsqsize = cpu_to_le16(queue->ctrl->ctrl.sqsize); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * NVMe over Fabrics RDMA host code. 4 * Copyright (c) 2015-2016 HGST, a Western Digital Company. 5 */ 6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 7#include <linux/module.h> 8#include <linux/init.h> --- 1862 unchanged lines hidden (view full) --- 1871 } else { 1872 /* 1873 * current interpretation of the fabrics spec 1874 * is at minimum you make hrqsize sqsize+1, or a 1875 * 1's based representation of sqsize. 1876 */ 1877 priv.hrqsize = cpu_to_le16(queue->queue_size); 1878 priv.hsqsize = cpu_to_le16(queue->ctrl->ctrl.sqsize); |
1879 /* cntlid should only be set when creating an I/O queue */ 1880 priv.cntlid = cpu_to_le16(ctrl->ctrl.cntlid); |
|
1879 } 1880 1881 ret = rdma_connect_locked(queue->cm_id, ¶m); 1882 if (ret) { 1883 dev_err(ctrl->ctrl.device, 1884 "rdma_connect_locked failed (%d).\n", ret); 1885 return ret; 1886 } --- 553 unchanged lines hidden --- | 1881 } 1882 1883 ret = rdma_connect_locked(queue->cm_id, ¶m); 1884 if (ret) { 1885 dev_err(ctrl->ctrl.device, 1886 "rdma_connect_locked failed (%d).\n", ret); 1887 return ret; 1888 } --- 553 unchanged lines hidden --- |