diff options
Diffstat (limited to 'drivers/scsi/fcoe/fcoe.c')
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index e32a0ed266aa..a39d370bccf8 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -49,6 +49,12 @@ MODULE_AUTHOR("Open-FCoE.org"); | |||
49 | MODULE_DESCRIPTION("FCoE"); | 49 | MODULE_DESCRIPTION("FCoE"); |
50 | MODULE_LICENSE("GPL v2"); | 50 | MODULE_LICENSE("GPL v2"); |
51 | 51 | ||
52 | /* Performance tuning parameters for fcoe */ | ||
53 | static unsigned int fcoe_ddp_min; | ||
54 | module_param_named(ddp_min, fcoe_ddp_min, uint, S_IRUGO | S_IWUSR); | ||
55 | MODULE_PARM_DESC(ddp_min, "Minimum I/O size in bytes for " \ | ||
56 | "Direct Data Placement (DDP)."); | ||
57 | |||
52 | /* fcoe host list */ | 58 | /* fcoe host list */ |
53 | LIST_HEAD(fcoe_hostlist); | 59 | LIST_HEAD(fcoe_hostlist); |
54 | DEFINE_RWLOCK(fcoe_hostlist_lock); | 60 | DEFINE_RWLOCK(fcoe_hostlist_lock); |
@@ -414,7 +420,8 @@ static int fcoe_shost_config(struct fc_lport *lp, struct Scsi_Host *shost, | |||
414 | */ | 420 | */ |
415 | bool fcoe_oem_match(struct fc_frame *fp) | 421 | bool fcoe_oem_match(struct fc_frame *fp) |
416 | { | 422 | { |
417 | return fc_fcp_is_read(fr_fsp(fp)); | 423 | return fc_fcp_is_read(fr_fsp(fp)) && |
424 | (fr_fsp(fp)->data_len > fcoe_ddp_min); | ||
418 | } | 425 | } |
419 | 426 | ||
420 | /** | 427 | /** |