Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (204 commits) [SCSI] qla4xxx: export address/port of connection (fix udev disk names) [SCSI] ipr: Fix BUG on adapter dump timeout [SCSI] megaraid_sas: Fix instance access in megasas_reset_timer [SCSI] hpsa: change confusing message to be more clear [SCSI] iscsi class: fix vlan configuration [SCSI] qla4xxx: fix data alignment and use nl helpers [SCSI] iscsi class: fix link local mispelling [SCSI] iscsi class: Replace iscsi_get_next_target_id with IDA [SCSI] aacraid: use lower snprintf() limit [SCSI] lpfc 8.3.27: Change driver version to 8.3.27 [SCSI] lpfc 8.3.27: T10 additions for SLI4 [SCSI] lpfc 8.3.27: Fix queue allocation failure recovery [SCSI] lpfc 8.3.27: Change algorithm for getting physical port name [SCSI] lpfc 8.3.27: Changed worst case mailbox timeout [SCSI] lpfc 8.3.27: Miscellanous logic and interface fixes [SCSI] megaraid_sas: Changelog and version update [SCSI] megaraid_sas: Add driver workaround for PERC5/1068 kdump kernel panic [SCSI] megaraid_sas: Add multiple MSI-X vector/multiple reply queue support [SCSI] megaraid_sas: Add support for MegaRAID 9360/9380 12GB/s controllers [SCSI] megaraid_sas: Clear FUSION_IN_RESET before enabling interrupts ...
This commit is contained in:
@@ -2704,6 +2704,33 @@ _ctl_ioc_reset_count_show(struct device *cdev, struct device_attribute *attr,
|
||||
static DEVICE_ATTR(ioc_reset_count, S_IRUGO,
|
||||
_ctl_ioc_reset_count_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_ioc_reply_queue_count_show - number of reply queues
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
*
|
||||
* This is number of reply queues
|
||||
*
|
||||
* A sysfs 'read-only' shost attribute.
|
||||
*/
|
||||
static ssize_t
|
||||
_ctl_ioc_reply_queue_count_show(struct device *cdev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
u8 reply_queue_count;
|
||||
struct Scsi_Host *shost = class_to_shost(cdev);
|
||||
struct MPT2SAS_ADAPTER *ioc = shost_priv(shost);
|
||||
|
||||
if ((ioc->facts.IOCCapabilities &
|
||||
MPI2_IOCFACTS_CAPABILITY_MSI_X_INDEX) && ioc->msix_enable)
|
||||
reply_queue_count = ioc->reply_queue_count;
|
||||
else
|
||||
reply_queue_count = 1;
|
||||
return snprintf(buf, PAGE_SIZE, "%d\n", reply_queue_count);
|
||||
}
|
||||
static DEVICE_ATTR(reply_queue_count, S_IRUGO,
|
||||
_ctl_ioc_reply_queue_count_show, NULL);
|
||||
|
||||
struct DIAG_BUFFER_START {
|
||||
__le32 Size;
|
||||
__le32 DiagVersion;
|
||||
@@ -2914,6 +2941,7 @@ struct device_attribute *mpt2sas_host_attrs[] = {
|
||||
&dev_attr_host_trace_buffer_size,
|
||||
&dev_attr_host_trace_buffer,
|
||||
&dev_attr_host_trace_buffer_enable,
|
||||
&dev_attr_reply_queue_count,
|
||||
NULL,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user