.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
16 | 4 | * |
---|
17 | 5 | * Maintained at www.Open-FCoE.org |
---|
18 | 6 | */ |
---|
.. | .. |
---|
127 | 115 | struct fc_lport *lp; |
---|
128 | 116 | struct list_head peers; |
---|
129 | 117 | struct work_struct rport_work; |
---|
130 | | - u32 port_id; |
---|
| 118 | + u32 port_id; |
---|
131 | 119 | }; |
---|
132 | 120 | |
---|
133 | 121 | /** |
---|
.. | .. |
---|
167 | 155 | */ |
---|
168 | 156 | struct fc_rport_libfc_priv { |
---|
169 | 157 | struct fc_lport *local_port; |
---|
170 | | - enum fc_rport_state rp_state; |
---|
| 158 | + enum fc_rport_state rp_state; |
---|
171 | 159 | u16 flags; |
---|
172 | 160 | #define FC_RP_FLAGS_REC_SUPPORTED (1 << 0) |
---|
173 | 161 | #define FC_RP_FLAGS_RETRY (1 << 1) |
---|
174 | 162 | #define FC_RP_STARTED (1 << 2) |
---|
175 | 163 | #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; |
---|
178 | 166 | }; |
---|
179 | 167 | |
---|
180 | 168 | /** |
---|
.. | .. |
---|
203 | 191 | struct fc_lport *local_port; |
---|
204 | 192 | struct fc_rport *rport; |
---|
205 | 193 | struct kref kref; |
---|
206 | | - enum fc_rport_state rp_state; |
---|
| 194 | + enum fc_rport_state rp_state; |
---|
207 | 195 | struct fc_rport_identifiers ids; |
---|
208 | 196 | u16 flags; |
---|
209 | | - u16 max_seq; |
---|
| 197 | + u16 max_seq; |
---|
210 | 198 | u16 disc_id; |
---|
211 | 199 | 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; |
---|
217 | 205 | struct delayed_work retry_work; |
---|
218 | | - enum fc_rport_event event; |
---|
| 206 | + enum fc_rport_event event; |
---|
219 | 207 | 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; |
---|
222 | 210 | u32 supported_classes; |
---|
223 | | - u16 prli_count; |
---|
| 211 | + u16 prli_count; |
---|
224 | 212 | struct rcu_head rcu; |
---|
225 | 213 | u16 sp_features; |
---|
226 | 214 | u8 spp_type; |
---|
.. | .. |
---|
630 | 618 | * @disc_callback: Callback routine called when discovery completes |
---|
631 | 619 | */ |
---|
632 | 620 | 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; |
---|
639 | 627 | |
---|
640 | 628 | struct list_head rports; |
---|
641 | 629 | void *priv; |
---|
.. | .. |
---|
709 | 697 | struct fc_rport_priv *ms_rdata; |
---|
710 | 698 | struct fc_rport_priv *ptp_rdata; |
---|
711 | 699 | void *scsi_priv; |
---|
712 | | - struct fc_disc disc; |
---|
| 700 | + struct fc_disc disc; |
---|
713 | 701 | |
---|
714 | 702 | /* Virtual port information */ |
---|
715 | 703 | struct list_head vports; |
---|
.. | .. |
---|
727 | 715 | u8 retry_count; |
---|
728 | 716 | |
---|
729 | 717 | /* Fabric information */ |
---|
730 | | - u32 port_id; |
---|
| 718 | + u32 port_id; |
---|
731 | 719 | u64 wwpn; |
---|
732 | 720 | u64 wwnn; |
---|
733 | 721 | unsigned int service_params; |
---|
.. | .. |
---|
755 | 743 | struct fc_ns_fts fcts; |
---|
756 | 744 | |
---|
757 | 745 | /* Miscellaneous */ |
---|
758 | | - struct mutex lp_mutex; |
---|
759 | | - struct list_head list; |
---|
| 746 | + struct mutex lp_mutex; |
---|
| 747 | + struct list_head list; |
---|
760 | 748 | struct delayed_work retry_work; |
---|
761 | 749 | void *prov[FC_FC4_PROV_SIZE]; |
---|
762 | | - struct list_head lport_list; |
---|
| 750 | + struct list_head lport_list; |
---|
763 | 751 | }; |
---|
764 | 752 | |
---|
765 | 753 | /** |
---|