2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License (GPL) Version 2 as
10 * published by the Free Software Foundation
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
18 #include <cs/bfa_log.h>
19 #include <aen/bfa_aen_adapter.h>
20 #include <aen/bfa_aen_audit.h>
21 #include <aen/bfa_aen_ethport.h>
22 #include <aen/bfa_aen_ioc.h>
23 #include <aen/bfa_aen_itnim.h>
24 #include <aen/bfa_aen_lport.h>
25 #include <aen/bfa_aen_port.h>
26 #include <aen/bfa_aen_rport.h>
27 #include <log/bfa_log_fcs.h>
28 #include <log/bfa_log_hal.h>
29 #include <log/bfa_log_linux.h>
30 #include <log/bfa_log_wdrv.h>
32 struct bfa_log_msgdef_s bfa_log_msg_array
[] = {
35 /* messages define for BFA_AEN_CAT_ADAPTER Module */
36 {BFA_AEN_ADAPTER_ADD
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
37 "BFA_AEN_ADAPTER_ADD",
38 "New adapter found: SN = %s, base port WWN = %s.",
39 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
41 {BFA_AEN_ADAPTER_REMOVE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
42 BFA_LOG_WARNING
, "BFA_AEN_ADAPTER_REMOVE",
43 "Adapter removed: SN = %s.",
44 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
49 /* messages define for BFA_AEN_CAT_AUDIT Module */
50 {BFA_AEN_AUDIT_AUTH_ENABLE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
51 BFA_LOG_INFO
, "BFA_AEN_AUDIT_AUTH_ENABLE",
52 "Authentication enabled for base port: WWN = %s.",
53 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
55 {BFA_AEN_AUDIT_AUTH_DISABLE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
56 BFA_LOG_INFO
, "BFA_AEN_AUDIT_AUTH_DISABLE",
57 "Authentication disabled for base port: WWN = %s.",
58 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
63 /* messages define for BFA_AEN_CAT_ETHPORT Module */
64 {BFA_AEN_ETHPORT_LINKUP
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
65 "BFA_AEN_ETHPORT_LINKUP",
66 "Base port ethernet linkup: mac = %s.",
67 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
69 {BFA_AEN_ETHPORT_LINKDOWN
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
70 "BFA_AEN_ETHPORT_LINKDOWN",
71 "Base port ethernet linkdown: mac = %s.",
72 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
74 {BFA_AEN_ETHPORT_ENABLE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
75 "BFA_AEN_ETHPORT_ENABLE",
76 "Base port ethernet interface enabled: mac = %s.",
77 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
79 {BFA_AEN_ETHPORT_DISABLE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
80 "BFA_AEN_ETHPORT_DISABLE",
81 "Base port ethernet interface disabled: mac = %s.",
82 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
87 /* messages define for BFA_AEN_CAT_IOC Module */
88 {BFA_AEN_IOC_HBGOOD
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
90 "Heart Beat of IOC %d is good.",
91 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | 0), 1},
93 {BFA_AEN_IOC_HBFAIL
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_CRITICAL
,
95 "Heart Beat of IOC %d has failed.",
96 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | 0), 1},
98 {BFA_AEN_IOC_ENABLE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
100 "IOC %d is enabled.",
101 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | 0), 1},
103 {BFA_AEN_IOC_DISABLE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
104 "BFA_AEN_IOC_DISABLE",
105 "IOC %d is disabled.",
106 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | 0), 1},
108 {BFA_AEN_IOC_FWMISMATCH
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
109 BFA_LOG_CRITICAL
, "BFA_AEN_IOC_FWMISMATCH",
110 "Running firmware version is incompatible with the driver version.",
116 /* messages define for BFA_AEN_CAT_ITNIM Module */
117 {BFA_AEN_ITNIM_ONLINE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
118 "BFA_AEN_ITNIM_ONLINE",
119 "Target (WWN = %s) is online for initiator (WWN = %s).",
120 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
122 {BFA_AEN_ITNIM_OFFLINE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
123 "BFA_AEN_ITNIM_OFFLINE",
124 "Target (WWN = %s) offlined by initiator (WWN = %s).",
125 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
127 {BFA_AEN_ITNIM_DISCONNECT
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
128 BFA_LOG_ERROR
, "BFA_AEN_ITNIM_DISCONNECT",
129 "Target (WWN = %s) connectivity lost for initiator (WWN = %s).",
130 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
135 /* messages define for BFA_AEN_CAT_LPORT Module */
136 {BFA_AEN_LPORT_NEW
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
138 "New logical port created: WWN = %s, Role = %s.",
139 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
141 {BFA_AEN_LPORT_DELETE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
142 "BFA_AEN_LPORT_DELETE",
143 "Logical port deleted: WWN = %s, Role = %s.",
144 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
146 {BFA_AEN_LPORT_ONLINE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
147 "BFA_AEN_LPORT_ONLINE",
148 "Logical port online: WWN = %s, Role = %s.",
149 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
151 {BFA_AEN_LPORT_OFFLINE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
152 "BFA_AEN_LPORT_OFFLINE",
153 "Logical port taken offline: WWN = %s, Role = %s.",
154 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
156 {BFA_AEN_LPORT_DISCONNECT
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
157 BFA_LOG_ERROR
, "BFA_AEN_LPORT_DISCONNECT",
158 "Logical port lost fabric connectivity: WWN = %s, Role = %s.",
159 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
161 {BFA_AEN_LPORT_NEW_PROP
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
162 "BFA_AEN_LPORT_NEW_PROP",
163 "New virtual port created using proprietary interface: WWN = %s, Role = %s.",
164 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
166 {BFA_AEN_LPORT_DELETE_PROP
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
167 BFA_LOG_INFO
, "BFA_AEN_LPORT_DELETE_PROP",
168 "Virtual port deleted using proprietary interface: WWN = %s, Role = %s.",
169 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
171 {BFA_AEN_LPORT_NEW_STANDARD
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
172 BFA_LOG_INFO
, "BFA_AEN_LPORT_NEW_STANDARD",
173 "New virtual port created using standard interface: WWN = %s, Role = %s.",
174 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
176 {BFA_AEN_LPORT_DELETE_STANDARD
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
177 BFA_LOG_INFO
, "BFA_AEN_LPORT_DELETE_STANDARD",
178 "Virtual port deleted using standard interface: WWN = %s, Role = %s.",
179 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
181 {BFA_AEN_LPORT_NPIV_DUP_WWN
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
182 BFA_LOG_WARNING
, "BFA_AEN_LPORT_NPIV_DUP_WWN",
183 "Virtual port login failed. Duplicate WWN = %s reported by fabric.",
184 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
186 {BFA_AEN_LPORT_NPIV_FABRIC_MAX
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
187 BFA_LOG_WARNING
, "BFA_AEN_LPORT_NPIV_FABRIC_MAX",
188 "Virtual port (WWN = %s) login failed. Max NPIV ports already exist in"
190 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
192 {BFA_AEN_LPORT_NPIV_UNKNOWN
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
193 BFA_LOG_WARNING
, "BFA_AEN_LPORT_NPIV_UNKNOWN",
194 "Virtual port (WWN = %s) login failed.",
195 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
200 /* messages define for BFA_AEN_CAT_PORT Module */
201 {BFA_AEN_PORT_ONLINE
, BFA_LOG_ATTR_NONE
, BFA_LOG_INFO
, "BFA_AEN_PORT_ONLINE",
202 "Base port online: WWN = %s.",
203 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
205 {BFA_AEN_PORT_OFFLINE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_WARNING
,
206 "BFA_AEN_PORT_OFFLINE",
207 "Base port offline: WWN = %s.",
208 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
210 {BFA_AEN_PORT_RLIR
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
212 "RLIR event not supported.",
215 {BFA_AEN_PORT_SFP_INSERT
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
216 "BFA_AEN_PORT_SFP_INSERT",
217 "New SFP found: WWN/MAC = %s.",
218 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
220 {BFA_AEN_PORT_SFP_REMOVE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
221 BFA_LOG_WARNING
, "BFA_AEN_PORT_SFP_REMOVE",
222 "SFP removed: WWN/MAC = %s.",
223 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
225 {BFA_AEN_PORT_SFP_POM
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_WARNING
,
226 "BFA_AEN_PORT_SFP_POM",
227 "SFP POM level to %s: WWN/MAC = %s.",
228 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
230 {BFA_AEN_PORT_ENABLE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
231 "BFA_AEN_PORT_ENABLE",
232 "Base port enabled: WWN = %s.",
233 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
235 {BFA_AEN_PORT_DISABLE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
236 "BFA_AEN_PORT_DISABLE",
237 "Base port disabled: WWN = %s.",
238 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
240 {BFA_AEN_PORT_AUTH_ON
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
241 "BFA_AEN_PORT_AUTH_ON",
242 "Authentication successful for base port: WWN = %s.",
243 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
245 {BFA_AEN_PORT_AUTH_OFF
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_ERROR
,
246 "BFA_AEN_PORT_AUTH_OFF",
247 "Authentication unsuccessful for base port: WWN = %s.",
248 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
250 {BFA_AEN_PORT_DISCONNECT
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_ERROR
,
251 "BFA_AEN_PORT_DISCONNECT",
252 "Base port (WWN = %s) lost fabric connectivity.",
253 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
255 {BFA_AEN_PORT_QOS_NEG
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_WARNING
,
256 "BFA_AEN_PORT_QOS_NEG",
257 "QOS negotiation failed for base port: WWN = %s.",
258 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
260 {BFA_AEN_PORT_FABRIC_NAME_CHANGE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
261 BFA_LOG_WARNING
, "BFA_AEN_PORT_FABRIC_NAME_CHANGE",
262 "Base port WWN = %s, Fabric WWN = %s.",
263 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
265 {BFA_AEN_PORT_SFP_ACCESS_ERROR
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
266 BFA_LOG_WARNING
, "BFA_AEN_PORT_SFP_ACCESS_ERROR",
267 "SFP access error: WWN/MAC = %s.",
268 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
270 {BFA_AEN_PORT_SFP_UNSUPPORT
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
271 BFA_LOG_WARNING
, "BFA_AEN_PORT_SFP_UNSUPPORT",
272 "Unsupported SFP found: WWN/MAC = %s.",
273 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
278 /* messages define for BFA_AEN_CAT_RPORT Module */
279 {BFA_AEN_RPORT_ONLINE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
280 "BFA_AEN_RPORT_ONLINE",
281 "Remote port (WWN = %s) online for logical port (WWN = %s).",
282 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
284 {BFA_AEN_RPORT_OFFLINE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
285 "BFA_AEN_RPORT_OFFLINE",
286 "Remote port (WWN = %s) offlined by logical port (WWN = %s).",
287 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
289 {BFA_AEN_RPORT_DISCONNECT
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
290 BFA_LOG_ERROR
, "BFA_AEN_RPORT_DISCONNECT",
291 "Remote port (WWN = %s) connectivity lost for logical port (WWN = %s).",
292 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) | 0), 2},
294 {BFA_AEN_RPORT_QOS_PRIO
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
295 "BFA_AEN_RPORT_QOS_PRIO",
296 "QOS priority changed to %s: RPWWN = %s and LPWWN = %s.",
297 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) |
298 (BFA_LOG_S
<< BFA_LOG_ARG2
) | 0), 3},
300 {BFA_AEN_RPORT_QOS_FLOWID
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
301 "BFA_AEN_RPORT_QOS_FLOWID",
302 "QOS flow ID changed to %d: RPWWN = %s and LPWWN = %s.",
303 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) |
304 (BFA_LOG_S
<< BFA_LOG_ARG2
) | 0), 3},
309 /* messages define for FCS Module */
310 {BFA_LOG_FCS_FABRIC_NOSWITCH
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
311 BFA_LOG_INFO
, "FCS_FABRIC_NOSWITCH",
312 "No switched fabric presence is detected.",
315 {BFA_LOG_FCS_FABRIC_ISOLATED
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
316 BFA_LOG_INFO
, "FCS_FABRIC_ISOLATED",
317 "Port is isolated due to VF_ID mismatch. PWWN: %s, Port VF_ID: %04x and"
318 " switch port VF_ID: %04x.",
319 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_X
<< BFA_LOG_ARG1
) |
320 (BFA_LOG_X
<< BFA_LOG_ARG2
) | 0), 3},
325 /* messages define for HAL Module */
326 {BFA_LOG_HAL_ASSERT
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_ERROR
,
328 "Assertion failure: %s:%d: %s",
329 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_D
<< BFA_LOG_ARG1
) |
330 (BFA_LOG_S
<< BFA_LOG_ARG2
) | 0), 3},
332 {BFA_LOG_HAL_HEARTBEAT_FAILURE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
333 BFA_LOG_CRITICAL
, "HAL_HEARTBEAT_FAILURE",
334 "Firmware heartbeat failure at %d",
335 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | 0), 1},
337 {BFA_LOG_HAL_FCPIM_PARM_INVALID
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
338 BFA_LOG_INFO
, "HAL_FCPIM_PARM_INVALID",
339 "Driver configuration %s value %d is invalid. Value should be within"
341 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_D
<< BFA_LOG_ARG1
) |
342 (BFA_LOG_D
<< BFA_LOG_ARG2
) | (BFA_LOG_D
<< BFA_LOG_ARG3
) | 0), 4},
344 {BFA_LOG_HAL_SM_ASSERT
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_ERROR
,
346 "SM Assertion failure: %s:%d: event = %d",
347 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | (BFA_LOG_D
<< BFA_LOG_ARG1
) |
348 (BFA_LOG_D
<< BFA_LOG_ARG2
) | 0), 3},
353 /* messages define for LINUX Module */
354 {BFA_LOG_LINUX_DEVICE_CLAIMED
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
355 BFA_LOG_INFO
, "LINUX_DEVICE_CLAIMED",
356 "bfa device at %s claimed.",
357 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
359 {BFA_LOG_LINUX_HASH_INIT_FAILED
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
360 BFA_LOG_INFO
, "LINUX_HASH_INIT_FAILED",
361 "Hash table initialization failure for the port %s.",
362 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
364 {BFA_LOG_LINUX_SYSFS_FAILED
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
365 BFA_LOG_INFO
, "LINUX_SYSFS_FAILED",
366 "sysfs file creation failure for the port %s.",
367 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
369 {BFA_LOG_LINUX_MEM_ALLOC_FAILED
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
370 BFA_LOG_INFO
, "LINUX_MEM_ALLOC_FAILED",
371 "Memory allocation failed: %s. ",
372 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
374 {BFA_LOG_LINUX_DRIVER_REGISTRATION_FAILED
,
375 BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
376 "LINUX_DRIVER_REGISTRATION_FAILED",
378 ((BFA_LOG_S
<< BFA_LOG_ARG0
) | 0), 1},
380 {BFA_LOG_LINUX_ITNIM_FREE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
382 "scsi%d: FCID: %s WWPN: %s",
383 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | (BFA_LOG_S
<< BFA_LOG_ARG1
) |
384 (BFA_LOG_S
<< BFA_LOG_ARG2
) | 0), 3},
386 {BFA_LOG_LINUX_ITNIM_ONLINE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
387 BFA_LOG_INFO
, "LINUX_ITNIM_ONLINE",
388 "Target: %d:0:%d FCID: %s WWPN: %s",
389 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | (BFA_LOG_D
<< BFA_LOG_ARG1
) |
390 (BFA_LOG_S
<< BFA_LOG_ARG2
) | (BFA_LOG_S
<< BFA_LOG_ARG3
) | 0), 4},
392 {BFA_LOG_LINUX_ITNIM_OFFLINE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
393 BFA_LOG_INFO
, "LINUX_ITNIM_OFFLINE",
394 "Target: %d:0:%d FCID: %s WWPN: %s",
395 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | (BFA_LOG_D
<< BFA_LOG_ARG1
) |
396 (BFA_LOG_S
<< BFA_LOG_ARG2
) | (BFA_LOG_S
<< BFA_LOG_ARG3
) | 0), 4},
398 {BFA_LOG_LINUX_SCSI_HOST_FREE
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
399 BFA_LOG_INFO
, "LINUX_SCSI_HOST_FREE",
401 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | 0), 1},
403 {BFA_LOG_LINUX_SCSI_ABORT
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
, BFA_LOG_INFO
,
405 "scsi%d: abort cmnd %p, iotag %x",
406 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | (BFA_LOG_P
<< BFA_LOG_ARG1
) |
407 (BFA_LOG_X
<< BFA_LOG_ARG2
) | 0), 3},
409 {BFA_LOG_LINUX_SCSI_ABORT_COMP
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
410 BFA_LOG_INFO
, "LINUX_SCSI_ABORT_COMP",
411 "scsi%d: complete abort 0x%p, iotag 0x%x",
412 ((BFA_LOG_D
<< BFA_LOG_ARG0
) | (BFA_LOG_P
<< BFA_LOG_ARG1
) |
413 (BFA_LOG_X
<< BFA_LOG_ARG2
) | 0), 3},
418 /* messages define for WDRV Module */
419 {BFA_LOG_WDRV_IOC_INIT_ERROR
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
420 BFA_LOG_INFO
, "WDRV_IOC_INIT_ERROR",
421 "IOC initialization has failed.",
424 {BFA_LOG_WDRV_IOC_INTERNAL_ERROR
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
425 BFA_LOG_INFO
, "WDRV_IOC_INTERNAL_ERROR",
426 "IOC internal error. ",
429 {BFA_LOG_WDRV_IOC_START_ERROR
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
430 BFA_LOG_INFO
, "WDRV_IOC_START_ERROR",
431 "IOC could not be started. ",
434 {BFA_LOG_WDRV_IOC_STOP_ERROR
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
435 BFA_LOG_INFO
, "WDRV_IOC_STOP_ERROR",
436 "IOC could not be stopped. ",
439 {BFA_LOG_WDRV_INSUFFICIENT_RESOURCES
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
440 BFA_LOG_INFO
, "WDRV_INSUFFICIENT_RESOURCES",
441 "Insufficient memory. ",
444 {BFA_LOG_WDRV_BASE_ADDRESS_MAP_ERROR
, BFA_LOG_ATTR_NONE
| BFA_LOG_ATTR_LOG
,
445 BFA_LOG_INFO
, "WDRV_BASE_ADDRESS_MAP_ERROR",
446 "Unable to map the IOC onto the system address space. ",
450 {0, 0, 0, "", "", 0, 0},