hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/scsi/libfc.h
....@@ -1,18 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright(c) 2007 Intel Corporation. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
12
- *
13
- * You should have received a copy of the GNU General Public License along with
14
- * this program; if not, write to the Free Software Foundation, Inc.,
15
- * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
164 *
175 * Maintained at www.Open-FCoE.org
186 */
....@@ -127,7 +115,7 @@
127115 struct fc_lport *lp;
128116 struct list_head peers;
129117 struct work_struct rport_work;
130
- u32 port_id;
118
+ u32 port_id;
131119 };
132120
133121 /**
....@@ -167,14 +155,14 @@
167155 */
168156 struct fc_rport_libfc_priv {
169157 struct fc_lport *local_port;
170
- enum fc_rport_state rp_state;
158
+ enum fc_rport_state rp_state;
171159 u16 flags;
172160 #define FC_RP_FLAGS_REC_SUPPORTED (1 << 0)
173161 #define FC_RP_FLAGS_RETRY (1 << 1)
174162 #define FC_RP_STARTED (1 << 2)
175163 #define FC_RP_FLAGS_CONF_REQ (1 << 3)
176
- unsigned int e_d_tov;
177
- unsigned int r_a_tov;
164
+ unsigned int e_d_tov;
165
+ unsigned int r_a_tov;
178166 };
179167
180168 /**
....@@ -203,24 +191,24 @@
203191 struct fc_lport *local_port;
204192 struct fc_rport *rport;
205193 struct kref kref;
206
- enum fc_rport_state rp_state;
194
+ enum fc_rport_state rp_state;
207195 struct fc_rport_identifiers ids;
208196 u16 flags;
209
- u16 max_seq;
197
+ u16 max_seq;
210198 u16 disc_id;
211199 u16 maxframe_size;
212
- unsigned int retries;
213
- unsigned int major_retries;
214
- unsigned int e_d_tov;
215
- unsigned int r_a_tov;
216
- struct mutex rp_mutex;
200
+ unsigned int retries;
201
+ unsigned int major_retries;
202
+ unsigned int e_d_tov;
203
+ unsigned int r_a_tov;
204
+ struct mutex rp_mutex;
217205 struct delayed_work retry_work;
218
- enum fc_rport_event event;
206
+ enum fc_rport_event event;
219207 struct fc_rport_operations *ops;
220
- struct list_head peers;
221
- struct work_struct event_work;
208
+ struct list_head peers;
209
+ struct work_struct event_work;
222210 u32 supported_classes;
223
- u16 prli_count;
211
+ u16 prli_count;
224212 struct rcu_head rcu;
225213 u16 sp_features;
226214 u8 spp_type;
....@@ -630,12 +618,12 @@
630618 * @disc_callback: Callback routine called when discovery completes
631619 */
632620 struct fc_disc {
633
- unsigned char retry_count;
634
- unsigned char pending;
635
- unsigned char requested;
636
- unsigned short seq_count;
637
- unsigned char buf_len;
638
- u16 disc_id;
621
+ unsigned char retry_count;
622
+ unsigned char pending;
623
+ unsigned char requested;
624
+ unsigned short seq_count;
625
+ unsigned char buf_len;
626
+ u16 disc_id;
639627
640628 struct list_head rports;
641629 void *priv;
....@@ -709,7 +697,7 @@
709697 struct fc_rport_priv *ms_rdata;
710698 struct fc_rport_priv *ptp_rdata;
711699 void *scsi_priv;
712
- struct fc_disc disc;
700
+ struct fc_disc disc;
713701
714702 /* Virtual port information */
715703 struct list_head vports;
....@@ -727,7 +715,7 @@
727715 u8 retry_count;
728716
729717 /* Fabric information */
730
- u32 port_id;
718
+ u32 port_id;
731719 u64 wwpn;
732720 u64 wwnn;
733721 unsigned int service_params;
....@@ -755,11 +743,11 @@
755743 struct fc_ns_fts fcts;
756744
757745 /* Miscellaneous */
758
- struct mutex lp_mutex;
759
- struct list_head list;
746
+ struct mutex lp_mutex;
747
+ struct list_head list;
760748 struct delayed_work retry_work;
761749 void *prov[FC_FC4_PROV_SIZE];
762
- struct list_head lport_list;
750
+ struct list_head lport_list;
763751 };
764752
765753 /**