Commit 51449058 authored by Tyrel Datwyler's avatar Tyrel Datwyler Committed by Martin K. Petersen

scsi: ibmvfc: Use a bitfield for boolean flags

There are currently 9 binary flag fields in the ibmvfc host
structure. Converting each of these to a single bitfield reduces the foot
print of the structure by 32 bytes.
Signed-off-by: default avatarTyrel Datwyler <tyreld@linux.ibm.com>
Link: https://lore.kernel.org/r/20230921225435.3537728-6-tyreld@linux.ibm.comReviewed-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 670106eb
...@@ -877,21 +877,21 @@ struct ibmvfc_host { ...@@ -877,21 +877,21 @@ struct ibmvfc_host {
struct ibmvfc_discover_targets_entry *disc_buf; struct ibmvfc_discover_targets_entry *disc_buf;
struct mutex passthru_mutex; struct mutex passthru_mutex;
int max_vios_scsi_channels; int max_vios_scsi_channels;
int client_scsi_channels;
int task_set; int task_set;
int init_retries; int init_retries;
int discovery_threads; int discovery_threads;
int abort_threads; int abort_threads;
int client_migrated; int client_migrated:1;
int reinit; int reinit:1;
int delay_init; int delay_init:1;
int scan_complete; int logged_in:1;
int mq_enabled:1;
int using_channels:1;
int do_enquiry:1;
int aborting_passthru:1;
int scan_complete:1;
int scan_timeout; int scan_timeout;
int logged_in;
int mq_enabled;
int using_channels;
int do_enquiry;
int client_scsi_channels;
int aborting_passthru;
int events_to_log; int events_to_log;
#define IBMVFC_AE_LINKUP 0x0001 #define IBMVFC_AE_LINKUP 0x0001
#define IBMVFC_AE_LINKDOWN 0x0002 #define IBMVFC_AE_LINKDOWN 0x0002
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment