diff options
author | Ganesh Goudar <ganeshgr@chelsio.com> | 2017-02-23 08:01:43 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-04-25 20:04:41 +0200 |
commit | e821303c428eedcc20746224d590b11c7000a7e5 (patch) | |
tree | efd2ceecec1cb20d65480503f97fdb9005cd0ea0 /drivers/infiniband/hw/cxgb4/mem.c | |
parent | RDMA/bnxt_re: Use IS_ERR_OR_NULL where appropriate (diff) | |
download | linux-e821303c428eedcc20746224d590b11c7000a7e5.tar.xz linux-e821303c428eedcc20746224d590b11c7000a7e5.zip |
iw_cxgb4: Use dsgl by default
Enable the use of dsgl by default and determine whether dsgl is
supported from lld info.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Bharat Potnuri <bharat@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/mem.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c index da9ca88b7855..19dc548e1b73 100644 --- a/drivers/infiniband/hw/cxgb4/mem.c +++ b/drivers/infiniband/hw/cxgb4/mem.c @@ -38,9 +38,9 @@ #include "iw_cxgb4.h" -int use_dsgl = 0; +int use_dsgl = 1; module_param(use_dsgl, int, 0644); -MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=0)"); +MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=1) (DEPRECATED)"); #define T4_ULPTX_MIN_IO 32 #define C4IW_MAX_INLINE_SIZE 96 @@ -231,7 +231,7 @@ out: static int write_adapter_mem(struct c4iw_rdev *rdev, u32 addr, u32 len, void *data, struct sk_buff *skb) { - if (is_t5(rdev->lldi.adapter_type) && use_dsgl) { + if (rdev->lldi.ulptx_memwrite_dsgl && use_dsgl) { if (len > inline_threshold) { if (_c4iw_write_mem_dma(rdev, addr, len, data, skb)) { pr_warn_ratelimited("%s: dma map failure (non fatal)\n", |