summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasu Dev2011-09-28 06:38:18 +0200
committerJames Bottomley2011-10-02 19:57:40 +0200
commit860eca2b2bf90c513c1d6d9f889b3e0801e7ac08 (patch)
treefd37ae422fa49ac3f14a390185205726b1ddc3d3
parent[SCSI] fcoe: use real dev in case of HW vlan acceleration (diff)
downloadkernel-qcow2-linux-860eca2b2bf90c513c1d6d9f889b3e0801e7ac08.tar.gz
kernel-qcow2-linux-860eca2b2bf90c513c1d6d9f889b3e0801e7ac08.tar.xz
kernel-qcow2-linux-860eca2b2bf90c513c1d6d9f889b3e0801e7ac08.zip
[SCSI] fcoe: setup default initial value for DDP threshold
Currently fcoe_ddp_min doesn't have default value so by default not used, so setting up default value as 4k as this works better by avoiding overhead of programing DDP for small IOs. Signed-off-by: Vasu Dev <vasu.dev@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Yi Zou <yi.zou@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/fcoe/fcoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index 0086fc836b54..80f3c48a9be3 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -52,7 +52,7 @@ MODULE_DESCRIPTION("FCoE");
MODULE_LICENSE("GPL v2");
/* Performance tuning parameters for fcoe */
-static unsigned int fcoe_ddp_min;
+static unsigned int fcoe_ddp_min = 4096;
module_param_named(ddp_min, fcoe_ddp_min, uint, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(ddp_min, "Minimum I/O size in bytes for " \
"Direct Data Placement (DDP).");