13611feb385b2caa2ff3e01399b8f01ca3a2b3f1
[multipath-tools/.git] / libmultipath / hwtable.c
1 #include <stdio.h>
2
3 #include "checkers.h"
4 #include "vector.h"
5 #include "defaults.h"
6 #include "structs.h"
7 #include "config.h"
8 #include "pgpolicies.h"
9 #include "prio.h"
10
11 /*
12  * Tuning suggestions on these parameters should go to
13  * dm-devel@redhat.com
14  * 
15  * You are welcome to claim maintainership over a controller
16  * family. Please mail the currently enlisted maintainer and
17  * the upstream package maintainer.
18  */
19 static struct hwentry default_hw[] = {
20         /*
21          * Compellent Technologies, Inc.
22          *
23          * Maintainer : Jim Lester, Compellent
24          * Mail : jim.lester@compellent.com
25          */
26         {
27                 .vendor        = "COMPELNT",
28                 .product       = "Compellent Vol",
29                 .features      = DEFAULT_FEATURES,
30                 .hwhandler     = DEFAULT_HWHANDLER,
31                 .pgpolicy      = MULTIBUS,
32                 .pgfailback    = -FAILBACK_IMMEDIATE,
33                 .rr_weight     = RR_WEIGHT_NONE,
34                 .no_path_retry = NO_PATH_RETRY_QUEUE,
35                 .checker_name  = TUR,
36                 .prio_name     = DEFAULT_PRIO,
37                 .prio_args     = NULL,
38         },
39         /*
40          * Apple controller family
41          *
42          * Maintainer : Shyam Sundar
43          * Mail : g.shyamsundar@yahoo.co.in
44          */
45         {
46                 .vendor        = "APPLE*",
47                 .product       = "Xserve RAID ",
48                 .features      = DEFAULT_FEATURES,
49                 .hwhandler     = DEFAULT_HWHANDLER,
50                 .pgpolicy      = MULTIBUS,
51                 .pgfailback    = FAILBACK_UNDEF,
52                 .rr_weight     = RR_WEIGHT_NONE,
53                 .no_path_retry = NO_PATH_RETRY_UNDEF,
54                 .checker_name  = DEFAULT_CHECKER,
55                 .prio_name     = DEFAULT_PRIO,
56                 .prio_args     = NULL,
57         },
58         /*
59          * StorageWorks controller family
60          *
61          * Maintainer : Christophe Varoqui
62          * Mail : christophe.varoqui@opensvc.com
63          */
64         {
65                 .vendor        = "3PARdata",
66                 .product       = "VV",
67                 .features      = DEFAULT_FEATURES,
68                 .hwhandler     = DEFAULT_HWHANDLER,
69                 .pgpolicy      = MULTIBUS,
70                 .pgfailback    = FAILBACK_UNDEF,
71                 .rr_weight     = RR_WEIGHT_NONE,
72                 .no_path_retry = NO_PATH_RETRY_UNDEF,
73                 .checker_name  = DEFAULT_CHECKER,
74                 .prio_name     = DEFAULT_PRIO,
75                 .prio_args     = NULL,
76         },
77         {
78                 .vendor        = "DEC",
79                 .product       = "HSG80",
80                 .features      = "1 queue_if_no_path",
81                 .hwhandler     = "1 hp_sw",
82                 .pgpolicy      = GROUP_BY_PRIO,
83                 .pgfailback    = FAILBACK_UNDEF,
84                 .rr_weight     = RR_WEIGHT_NONE,
85                 .no_path_retry = NO_PATH_RETRY_UNDEF,
86                 .checker_name  = HP_SW,
87                 .prio_name     = PRIO_HP_SW,
88                 .prio_args     = NULL,
89         },
90         {
91                 .vendor        = "HP",
92                 .product       = "A6189A",
93                 .features      = DEFAULT_FEATURES,
94                 .hwhandler     = DEFAULT_HWHANDLER,
95                 .pgpolicy      = MULTIBUS,
96                 .pgfailback    = FAILBACK_UNDEF,
97                 .rr_weight     = RR_WEIGHT_NONE,
98                 .no_path_retry = 12,
99                 .checker_name  = DIRECTIO,
100                 .prio_name     = DEFAULT_PRIO,
101                 .prio_args     = NULL,
102         },
103         {
104                 /* MSA 1000/MSA1500 EVA 3000/5000 with old firmware */
105                 .vendor        = "(COMPAQ|HP)",
106                 .product       = "(MSA|HSV)1.0.*",
107                 .features      = "1 queue_if_no_path",
108                 .hwhandler     = "1 hp_sw",
109                 .pgpolicy      = GROUP_BY_PRIO,
110                 .pgfailback    = FAILBACK_UNDEF,
111                 .rr_weight     = RR_WEIGHT_NONE,
112                 .no_path_retry = 12,
113                 .minio         = 100,
114                 .checker_name  = HP_SW,
115                 .prio_name     = PRIO_HP_SW,
116                 .prio_args     = NULL,
117         },
118         {
119                 /* MSA 1000/1500 with new firmware */
120                 .vendor        = "(COMPAQ|HP)",
121                 .product       = "MSA VOLUME",
122                 .features      = DEFAULT_FEATURES,
123                 .hwhandler     = DEFAULT_HWHANDLER,
124                 .pgpolicy      = GROUP_BY_PRIO,
125                 .pgfailback    = -FAILBACK_IMMEDIATE,
126                 .rr_weight     = RR_WEIGHT_NONE,
127                 .no_path_retry = 12,
128                 .minio         = 100,
129                 .checker_name  = TUR,
130                 .prio_name     = PRIO_ALUA,
131                 .prio_args     = NULL,
132         },
133         {
134                 /* EVA 3000/5000 with new firmware, EVA 4000/6000/8000 */
135                 .vendor        = "(COMPAQ|HP)",
136                 .product       = "HSV1[01]1|HSV2[01]0|HSV3[046]0|HSV4[05]0",
137                 .features      = DEFAULT_FEATURES,
138                 .hwhandler     = DEFAULT_HWHANDLER,
139                 .pgpolicy      = GROUP_BY_PRIO,
140                 .pgfailback    = -FAILBACK_IMMEDIATE,
141                 .rr_weight     = RR_WEIGHT_NONE,
142                 .no_path_retry = 12,
143                 .minio         = 100,
144                 .checker_name  = TUR,
145                 .prio_name     = PRIO_ALUA,
146                 .prio_args     = NULL,
147         },
148         {
149                 /* HP MSA2000 product family with old firmware */
150                 .vendor        = "HP",
151                 .product       = "MSA2[02]12fc|MSA2012i",
152                 .features      = DEFAULT_FEATURES,
153                 .hwhandler     = DEFAULT_HWHANDLER,
154                 .pgpolicy      = MULTIBUS,
155                 .pgfailback    = -FAILBACK_IMMEDIATE,
156                 .rr_weight     = RR_WEIGHT_NONE,
157                 .no_path_retry = 18,
158                 .minio         = 100,
159                 .checker_name  = TUR,
160                 .prio_name     = DEFAULT_PRIO,
161                 .prio_args     = NULL,
162         },
163         {
164                 /* HP MSA2000 product family with new firmware */
165                 .vendor        = "HP",
166                 .product       = "MSA2012sa|MSA23(12|24)(fc|i|sa)|MSA2000s VOLUME",
167                 .features      = DEFAULT_FEATURES,
168                 .hwhandler     = DEFAULT_HWHANDLER,
169                 .pgpolicy      = GROUP_BY_PRIO,
170                 .pgfailback    = -FAILBACK_IMMEDIATE,
171                 .rr_weight     = RR_WEIGHT_NONE,
172                 .no_path_retry = 18,
173                 .minio         = 100,
174                 .checker_name  = TUR,
175                 .prio_name     = PRIO_ALUA,
176                 .prio_args     = NULL,
177         },
178
179         {
180                 /* HP SVSP */
181                 .vendor        = "HP",
182                 .product       = "HSVX700",
183                 .features      = DEFAULT_FEATURES,
184                 .hwhandler     = "1 alua",
185                 .pgpolicy      = GROUP_BY_PRIO,
186                 .pgfailback    = -FAILBACK_IMMEDIATE,
187                 .rr_weight     = RR_WEIGHT_NONE,
188                 .no_path_retry = 12,
189                 .minio         = 100,
190                 .checker_name  = TUR,
191                 .prio_name     = PRIO_ALUA,
192                 .prio_args     = NULL,
193         },
194
195         {
196                 /* HP Smart Array */
197                 .vendor        = "HP",
198                 .product       = "LOGICAL VOLUME.*",
199                 .features      = DEFAULT_FEATURES,
200                 .hwhandler     = DEFAULT_HWHANDLER,
201                 .pgpolicy      = MULTIBUS,
202                 .pgfailback    = FAILBACK_UNDEF,
203                 .rr_weight     = RR_WEIGHT_NONE,
204                 .no_path_retry = 12,
205                 .checker_name  = TUR,
206                 .prio_name     = DEFAULT_PRIO,
207                 .prio_args     = NULL,
208         },
209         {
210                 /* HP P2000 family arrays */
211                 .vendor        = "HP",
212                 .product       = "P2000 G3 FC|P2000G3 FC/iSCSI|P2000 G3 SAS|P2000 G3 iSCSI",
213                 .features      = DEFAULT_FEATURES,
214                 .hwhandler     = DEFAULT_HWHANDLER,
215                 .pgpolicy      = GROUP_BY_PRIO,
216                 .pgfailback    = -FAILBACK_IMMEDIATE,
217                 .rr_weight     = RR_WEIGHT_NONE,
218                 .no_path_retry = 18,
219                 .minio         = 100,
220                 .checker_name  = TUR,
221                 .prio_name     = PRIO_ALUA,
222                 .prio_args     = NULL,
223         },
224         /*
225          * DDN controller family
226          *
227          * Maintainer : Christophe Varoqui
228          * Mail : christophe.varoqui@opensvc.com
229          */
230         {
231                 .vendor        = "DDN",
232                 .product       = "SAN DataDirector",
233                 .features      = DEFAULT_FEATURES,
234                 .hwhandler     = DEFAULT_HWHANDLER,
235                 .pgpolicy      = MULTIBUS,
236                 .pgfailback    = FAILBACK_UNDEF,
237                 .rr_weight     = RR_WEIGHT_NONE,
238                 .no_path_retry = NO_PATH_RETRY_UNDEF,
239                 .checker_name  = DIRECTIO,
240                 .prio_name     = DEFAULT_PRIO,
241                 .prio_args     = NULL,
242         },
243         /*
244          * EMC / Clariion controller family
245          *
246          * Maintainer : Edward Goggin, EMC
247          * Mail : egoggin@emc.com
248          */
249         {
250                 .vendor        = "EMC",
251                 .product       = "SYMMETRIX",
252                 .features      = DEFAULT_FEATURES,
253                 .hwhandler     = DEFAULT_HWHANDLER,
254                 .pgpolicy      = MULTIBUS,
255                 .pgfailback    = FAILBACK_UNDEF,
256                 .rr_weight     = RR_WEIGHT_NONE,
257                 .no_path_retry = 6,
258                 .checker_name  = TUR,
259                 .prio_name     = DEFAULT_PRIO,
260                 .prio_args     = NULL,
261         },
262         {
263                 .vendor        = "DGC",
264                 .product       = ".*",
265                 .bl_product    = "LUNZ",
266                 .features      = "1 queue_if_no_path",
267                 .hwhandler     = "1 emc",
268                 .pgpolicy      = GROUP_BY_PRIO,
269                 .pgfailback    = -FAILBACK_IMMEDIATE,
270                 .rr_weight     = RR_WEIGHT_NONE,
271                 .no_path_retry = (300 / DEFAULT_CHECKINT),
272                 .checker_name  = EMC_CLARIION,
273                 .prio_name     = PRIO_EMC,
274                 .prio_args     = NULL,
275                 .retain_hwhandler = RETAIN_HWHANDLER_ON,
276                 .detect_prio   = DETECT_PRIO_ON,
277         },
278         {
279                 .vendor        = "EMC",
280                 .product       = "Invista",
281                 .bl_product    = "LUNZ",
282                 .features      = DEFAULT_FEATURES,
283                 .hwhandler     = DEFAULT_HWHANDLER,
284                 .pgpolicy      = MULTIBUS,
285                 .pgfailback    = FAILBACK_UNDEF,
286                 .rr_weight     = RR_WEIGHT_NONE,
287                 .no_path_retry = 5,
288                 .checker_name  = TUR,
289                 .prio_name     = DEFAULT_PRIO,
290                 .prio_args     = NULL,
291         },
292         {
293                 .vendor        = "XtremIO",
294                 .product       = "XtremApp",
295                 .features      = DEFAULT_FEATURES,
296                 .hwhandler     = DEFAULT_HWHANDLER,
297                 .pgpolicy      = MULTIBUS,
298                 .pgfailback    = FAILBACK_UNDEF,
299                 .rr_weight     = RR_WEIGHT_NONE,
300                 .no_path_retry = 5,
301                 .checker_name  = TUR,
302                 .prio_name     = DEFAULT_PRIO,
303                 .prio_args     = NULL,
304         },
305         /*
306          * Fujitsu controller family
307          *
308          * Maintainer : Christophe Varoqui
309          * Mail : christophe.varoqui@opensvc.com
310          */
311         {
312                 .vendor        = "FSC",
313                 .product       = "CentricStor",
314                 .features      = DEFAULT_FEATURES,
315                 .hwhandler     = DEFAULT_HWHANDLER,
316                 .pgpolicy      = GROUP_BY_SERIAL,
317                 .pgfailback    = FAILBACK_UNDEF,
318                 .rr_weight     = RR_WEIGHT_NONE,
319                 .no_path_retry = NO_PATH_RETRY_UNDEF,
320                 .checker_name  = DIRECTIO,
321                 .prio_name     = DEFAULT_PRIO,
322                 .prio_args     = NULL,
323         },
324         {
325                 .vendor        = "FUJITSU",
326                 .product       = "ETERNUS_DX(H|L|M|400|8000)",
327                 .features      = "1 queue_if_no_path",
328                 .hwhandler     = DEFAULT_HWHANDLER,
329                 .pgpolicy      = GROUP_BY_PRIO,
330                 .pgfailback    = -FAILBACK_IMMEDIATE,
331                 .rr_weight     = RR_WEIGHT_NONE,
332                 .no_path_retry = 10,
333                 .checker_name  = TUR,
334                 .prio_name     = PRIO_ALUA,
335                 .prio_args     = NULL,
336         },
337         /*
338          * Hitachi controller family
339          *
340          * Maintainer : Matthias Rudolph
341          * Mail : matthias.rudolph@hds.com
342          */
343         {
344                 .vendor        = "(HITACHI|HP)",
345                 .product       = "OPEN-.*",
346                 .features      = DEFAULT_FEATURES,
347                 .hwhandler     = DEFAULT_HWHANDLER,
348                 .pgpolicy      = MULTIBUS,
349                 .pgfailback    = FAILBACK_UNDEF,
350                 .rr_weight     = RR_WEIGHT_NONE,
351                 .no_path_retry = NO_PATH_RETRY_UNDEF,
352                 .checker_name  = TUR,
353                 .prio_name     = DEFAULT_PRIO,
354                 .prio_args     = NULL,
355         },
356         {
357                 .vendor        = "HITACHI",
358                 .product       = "DF.*",
359                 .features      = "1 queue_if_no_path",
360                 .hwhandler     = DEFAULT_HWHANDLER,
361                 .pgpolicy      = GROUP_BY_PRIO,
362                 .pgfailback    = -FAILBACK_IMMEDIATE,
363                 .rr_weight     = RR_WEIGHT_NONE,
364                 .no_path_retry = NO_PATH_RETRY_UNDEF,
365                 .checker_name  = TUR,
366                 .prio_name     = PRIO_HDS,
367                 .prio_args     = NULL,
368         },
369         /*
370          * IBM controller family
371          *
372          * Maintainer : Hannes Reinecke, SuSE
373          * Mail : hare@suse.de
374          */
375         {
376                 .vendor        = "IBM",
377                 .product       = "ProFibre 4000R",
378                 .features      = DEFAULT_FEATURES,
379                 .hwhandler     = DEFAULT_HWHANDLER,
380                 .pgpolicy      = MULTIBUS,
381                 .pgfailback    = FAILBACK_UNDEF,
382                 .rr_weight     = RR_WEIGHT_NONE,
383                 .no_path_retry = NO_PATH_RETRY_UNDEF,
384                 .checker_name  = DIRECTIO,
385                 .prio_name     = DEFAULT_PRIO,
386                 .prio_args     = NULL,
387         },
388         {
389                 /* IBM FAStT 1722-600 */
390                 .vendor        = "IBM",
391                 .product       = "^1722-600",
392                 .bl_product    = "Universal Xport",
393                 .features      = "1 queue_if_no_path",
394                 .hwhandler     = "1 rdac",
395                 .pgpolicy      = GROUP_BY_PRIO,
396                 .pgfailback    = -FAILBACK_IMMEDIATE,
397                 .rr_weight     = RR_WEIGHT_NONE,
398                 .no_path_retry = 300,
399                 .checker_name  = RDAC,
400                 .prio_name     = PRIO_RDAC,
401                 .prio_args     = NULL,
402         },
403         {
404                 /* IBM DS4100 */
405                 .vendor        = "IBM",
406                 .product       = "^1724",
407                 .bl_product    = "Universal Xport",
408                 .features      = "1 queue_if_no_path",
409                 .hwhandler     = "1 rdac",
410                 .pgpolicy      = GROUP_BY_PRIO,
411                 .pgfailback    = -FAILBACK_IMMEDIATE,
412                 .rr_weight     = RR_WEIGHT_NONE,
413                 .no_path_retry = 300,
414                 .checker_name  = RDAC,
415                 .prio_name     = PRIO_RDAC,
416                 .prio_args     = NULL,
417         },
418         {
419                 /* IBM DS3200 / DS3300 / DS3400 */
420                 .vendor        = "IBM",
421                 .product       = "^1726",
422                 .bl_product    = "Universal Xport",
423                 .features      = "1 queue_if_no_path",
424                 .hwhandler     = "1 rdac",
425                 .pgpolicy      = GROUP_BY_PRIO,
426                 .pgfailback    = -FAILBACK_IMMEDIATE,
427                 .rr_weight     = RR_WEIGHT_NONE,
428                 .no_path_retry = 300,
429                 .checker_name  = RDAC,
430                 .prio_name     = PRIO_RDAC,
431                 .prio_args     = NULL,
432         },
433         {
434                 /* IBM DS4400 / DS4500 / FAStT700 */
435                 .vendor        = "IBM",
436                 .product       = "^1742",
437                 .bl_product    = "Universal Xport",
438                 .features      = DEFAULT_FEATURES,
439                 .hwhandler     = "1 rdac",
440                 .pgpolicy      = GROUP_BY_PRIO,
441                 .pgfailback    = -FAILBACK_IMMEDIATE,
442                 .rr_weight     = RR_WEIGHT_NONE,
443                 .no_path_retry = NO_PATH_RETRY_QUEUE,
444                 .checker_name  = RDAC,
445                 .prio_name     = PRIO_RDAC,
446                 .prio_args     = NULL,
447         },
448         {
449                 .vendor        = "IBM",
450                 .product       = "^1745|^1746",
451                 .bl_product    = "Universal Xport",
452                 .features      = "2 pg_init_retries 50",
453                 .hwhandler     = "1 rdac",
454                 .pgpolicy      = GROUP_BY_PRIO,
455                 .pgfailback    = -FAILBACK_IMMEDIATE,
456                 .rr_weight     = RR_WEIGHT_NONE,
457                 .no_path_retry = 15,
458                 .checker_name  = RDAC,
459                 .prio_name     = PRIO_RDAC,
460                 .prio_args     = NULL,
461         },
462         {
463             /* IBM DS4700 */
464                 .vendor        = "IBM",
465                 .product       = "^1814",
466                 .bl_product    = "Universal Xport",
467                 .features      = DEFAULT_FEATURES,
468                 .hwhandler     = "1 rdac",
469                 .pgpolicy      = GROUP_BY_PRIO,
470                 .pgfailback    = -FAILBACK_IMMEDIATE,
471                 .rr_weight     = RR_WEIGHT_NONE,
472                 .no_path_retry = NO_PATH_RETRY_QUEUE,
473                 .checker_name  = RDAC,
474                 .prio_name     = PRIO_RDAC,
475                 .prio_args     = NULL,
476         },
477         {
478             /* IBM DS4800 */
479                 .vendor        = "IBM",
480                 .product       = "^1815",
481                 .bl_product    = "Universal Xport",
482                 .features      = DEFAULT_FEATURES,
483                 .hwhandler     = "1 rdac",
484                 .pgpolicy      = GROUP_BY_PRIO,
485                 .pgfailback    = -FAILBACK_IMMEDIATE,
486                 .rr_weight     = RR_WEIGHT_NONE,
487                 .no_path_retry = NO_PATH_RETRY_QUEUE,
488                 .checker_name  = RDAC,
489                 .prio_name     = PRIO_RDAC,
490                 .prio_args     = NULL,
491         },
492         {
493             /* IBM DS5000 */
494                 .vendor        = "IBM",
495                 .product       = "^1818",
496                 .bl_product    = "Universal Xport",
497                 .features      = DEFAULT_FEATURES,
498                 .hwhandler     = "1 rdac",
499                 .pgpolicy      = GROUP_BY_PRIO,
500                 .pgfailback    = -FAILBACK_IMMEDIATE,
501                 .rr_weight     = RR_WEIGHT_NONE,
502                 .no_path_retry = NO_PATH_RETRY_QUEUE,
503                 .checker_name  = RDAC,
504                 .prio_name     = PRIO_RDAC,
505                 .prio_args     = NULL,
506         },
507         {
508                 /* IBM Netfinity Fibre Channel RAID Controller Unit */
509                 .vendor        = "IBM",
510                 .product       = "^3526",
511                 .bl_product    = "Universal Xport",
512                 .features      = DEFAULT_FEATURES,
513                 .hwhandler     = "1 rdac",
514                 .pgpolicy      = GROUP_BY_PRIO,
515                 .pgfailback    = -FAILBACK_IMMEDIATE,
516                 .rr_weight     = RR_WEIGHT_NONE,
517                 .no_path_retry = NO_PATH_RETRY_QUEUE,
518                 .checker_name  = RDAC,
519                 .prio_name     = PRIO_RDAC,
520                 .prio_args     = NULL,
521         },
522         {
523                 /* IBM DS4200 / FAStT200 */
524                 .vendor        = "IBM",
525                 .product       = "^3542",
526                 .features      = DEFAULT_FEATURES,
527                 .hwhandler     = DEFAULT_HWHANDLER,
528                 .pgpolicy      = GROUP_BY_SERIAL,
529                 .pgfailback    = FAILBACK_UNDEF,
530                 .rr_weight     = RR_WEIGHT_NONE,
531                 .no_path_retry = NO_PATH_RETRY_UNDEF,
532                 .checker_name  = TUR,
533                 .prio_name     = DEFAULT_PRIO,
534                 .prio_args     = NULL,
535         },
536         {
537                 /* IBM ESS F20 aka Shark */
538                 .vendor        = "IBM",
539                 .product       = "^2105800",
540                 .features      = "1 queue_if_no_path",
541                 .hwhandler     = DEFAULT_HWHANDLER,
542                 .pgpolicy      = GROUP_BY_SERIAL,
543                 .pgfailback    = FAILBACK_UNDEF,
544                 .rr_weight     = RR_WEIGHT_NONE,
545                 .no_path_retry = NO_PATH_RETRY_UNDEF,
546                 .checker_name  = TUR,
547                 .prio_name     = DEFAULT_PRIO,
548                 .prio_args     = NULL,
549         },
550         {
551                 /* IBM ESS F20 aka Shark */
552                 .vendor        = "IBM",
553                 .product       = "^2105F20",
554                 .features      = "1 queue_if_no_path",
555                 .hwhandler     = DEFAULT_HWHANDLER,
556                 .pgpolicy      = GROUP_BY_SERIAL,
557                 .pgfailback    = FAILBACK_UNDEF,
558                 .rr_weight     = RR_WEIGHT_NONE,
559                 .no_path_retry = NO_PATH_RETRY_UNDEF,
560                 .checker_name  = TUR,
561                 .prio_name     = DEFAULT_PRIO,
562                 .prio_args     = NULL,
563         },
564         {
565                 /* IBM DS6000 */
566                 .vendor        = "IBM",
567                 .product       = "^1750500",
568                 .features      = "1 queue_if_no_path",
569                 .hwhandler     = DEFAULT_HWHANDLER,
570                 .pgpolicy      = GROUP_BY_PRIO,
571                 .pgfailback    = -FAILBACK_IMMEDIATE,
572                 .rr_weight     = RR_WEIGHT_NONE,
573                 .no_path_retry = NO_PATH_RETRY_UNDEF,
574                 .checker_name  = TUR,
575                 .prio_name     = PRIO_ALUA,
576                 .prio_args     = NULL,
577         },
578         {
579                 /* IBM DS8000 */
580                 .vendor        = "IBM",
581                 .product       = "^2107900",
582                 .features      = "1 queue_if_no_path",
583                 .hwhandler     = DEFAULT_HWHANDLER,
584                 .pgpolicy      = MULTIBUS,
585                 .pgfailback    = FAILBACK_UNDEF,
586                 .rr_weight     = RR_WEIGHT_NONE,
587                 .no_path_retry = NO_PATH_RETRY_UNDEF,
588                 .checker_name  = TUR,
589                 .prio_name     = DEFAULT_PRIO,
590                 .prio_args     = NULL,
591         },
592         {
593                 /* IBM SAN Volume Controller */
594                 .vendor        = "IBM",
595                 .product       = "^2145",
596                 .features      = "1 queue_if_no_path",
597                 .hwhandler     = DEFAULT_HWHANDLER,
598                 .pgpolicy      = GROUP_BY_PRIO,
599                 .pgfailback    = -FAILBACK_IMMEDIATE,
600                 .rr_weight     = RR_WEIGHT_NONE,
601                 .no_path_retry = NO_PATH_RETRY_UNDEF,
602                 .checker_name  = TUR,
603                 .prio_name     = PRIO_ALUA,
604                 .prio_args     = NULL,
605         },
606         {
607                 /* IBM S/390 ECKD DASD */
608                 .vendor        = "IBM",
609                 .product       = "S/390 DASD ECKD",
610                 .bl_product       = "S/390.*",
611                 .uid_attribute = "ID_UID",
612                 .features      = "1 queue_if_no_path",
613                 .hwhandler     = DEFAULT_HWHANDLER,
614                 .pgpolicy      = MULTIBUS,
615                 .pgfailback    = FAILBACK_UNDEF,
616                 .rr_weight     = RR_WEIGHT_NONE,
617                 .no_path_retry = NO_PATH_RETRY_UNDEF,
618                 .checker_name  = DIRECTIO,
619                 .prio_name     = DEFAULT_PRIO,
620                 .prio_args     = NULL,
621         },
622         {
623                 /* IBM S/390 FBA DASD */
624                 .vendor        = "IBM",
625                 .product       = "S/390 DASD FBA",
626                 .bl_product       = "S/390.*",
627                 .uid_attribute = "ID_UID",
628                 .features      = "1 queue_if_no_path",
629                 .hwhandler     = DEFAULT_HWHANDLER,
630                 .pgpolicy      = MULTIBUS,
631                 .pgfailback    = FAILBACK_UNDEF,
632                 .rr_weight     = RR_WEIGHT_NONE,
633                 .no_path_retry = NO_PATH_RETRY_UNDEF,
634                 .checker_name  = DIRECTIO,
635                 .prio_name     = DEFAULT_PRIO,
636                 .prio_args     = NULL,
637         },
638         {
639                 /* IBM IPR */
640                 .vendor        = "IBM",
641                 .product       = "^IPR.*",
642                 .features      = "1 queue_if_no_path",
643                 .hwhandler     = "1 alua",
644                 .pgpolicy      = GROUP_BY_PRIO,
645                 .pgfailback    = -FAILBACK_IMMEDIATE,
646                 .rr_weight     = RR_WEIGHT_NONE,
647                 .no_path_retry = NO_PATH_RETRY_UNDEF,
648                 .checker_name  = TUR,
649                 .prio_name     = PRIO_ALUA,
650                 .prio_args     = NULL,
651         },
652         {
653                 /* IBM RSSM */
654                 .vendor        = "IBM",
655                 .product       = "1820N00",
656                 .features      = DEFAULT_FEATURES,
657                 .hwhandler     = DEFAULT_HWHANDLER,
658                 .pgpolicy      = GROUP_BY_PRIO,
659                 .pgfailback    = -FAILBACK_IMMEDIATE,
660                 .rr_weight     = RR_WEIGHT_NONE,
661                 .no_path_retry = NO_PATH_RETRY_QUEUE,
662                 .minio         = 100,
663                 .checker_name  = TUR,
664                 .prio_name     = PRIO_ALUA,
665                 .prio_args     = NULL,
666         },
667         {
668             /* IBM XIV Storage System */
669                 .vendor        = "IBM",
670                 .product       = "2810XIV",
671                 .features      = "1 queue_if_no_path",
672                 .hwhandler     = DEFAULT_HWHANDLER,
673                 .pgpolicy      = MULTIBUS,
674                 .pgfailback    = 15,
675                 .rr_weight     = RR_WEIGHT_NONE,
676                 .no_path_retry = NO_PATH_RETRY_UNDEF,
677                 .minio         = 15,
678                 .checker_name  = TUR,
679                 .prio_name     = DEFAULT_PRIO,
680                 .prio_args     = NULL,
681         },
682         /*
683          * IBM Power Virtual SCSI Devices
684          *
685          * Maintainer : Brian King, IBM
686          * Mail : brking@linux.vnet.ibm.com
687          */
688         {
689                 /* AIX VDASD */
690                 .vendor        = "AIX",
691                 .product       = "VDASD",
692                 .features      = DEFAULT_FEATURES,
693                 .hwhandler     = DEFAULT_HWHANDLER,
694                 .pgpolicy      = MULTIBUS,
695                 .pgfailback    = -FAILBACK_IMMEDIATE,
696                 .rr_weight     = RR_WEIGHT_NONE,
697                 .no_path_retry = (300 / DEFAULT_CHECKINT),
698                 .checker_name  = DIRECTIO,
699                 .prio_name     = DEFAULT_PRIO,
700                 .prio_args     = NULL,
701         },
702         {
703                 /* IBM 3303      NVDISK */
704                 .vendor        = "IBM",
705                 .product       = "3303      NVDISK",
706                 .features      = DEFAULT_FEATURES,
707                 .hwhandler     = DEFAULT_HWHANDLER,
708                 .pgpolicy      = FAILOVER,
709                 .pgfailback    = -FAILBACK_IMMEDIATE,
710                 .rr_weight     = RR_WEIGHT_NONE,
711                 .no_path_retry = (300 / DEFAULT_CHECKINT),
712                 .checker_name  = TUR,
713                 .prio_name     = DEFAULT_PRIO,
714                 .prio_args     = NULL,
715         },
716         {
717                 /* AIX NVDISK */
718                 .vendor        = "AIX",
719                 .product       = "NVDISK",
720                 .features      = DEFAULT_FEATURES,
721                 .hwhandler     = "1 alua",
722                 .pgpolicy      = GROUP_BY_PRIO,
723                 .pgfailback    = -FAILBACK_IMMEDIATE,
724                 .rr_weight     = RR_WEIGHT_NONE,
725                 .no_path_retry = (300 / DEFAULT_CHECKINT),
726                 .checker_name  = TUR,
727                 .prio_name     = PRIO_ALUA,
728                 .prio_args     = NULL,
729         },
730         {
731                 /* DELL MD3000 */
732                 .vendor        = "DELL",
733                 .product       = "MD3000",
734                 .bl_product    = "Universal Xport",
735                 .features      = "2 pg_init_retries 50",
736                 .hwhandler     = "1 rdac",
737                 .pgpolicy      = GROUP_BY_PRIO,
738                 .pgfailback    = -FAILBACK_IMMEDIATE,
739                 .rr_weight     = RR_WEIGHT_NONE,
740                 .no_path_retry = 15,
741                 .checker_name  = RDAC,
742                 .prio_name     = PRIO_RDAC,
743                 .prio_args     = NULL,
744         },
745         {
746                 /* DELL MD3000i */
747                 .vendor        = "DELL",
748                 .product       = "MD3000i",
749                 .bl_product    = "Universal Xport",
750                 .features      = "2 pg_init_retries 50",
751                 .hwhandler     = "1 rdac",
752                 .pgpolicy      = GROUP_BY_PRIO,
753                 .pgfailback    = -FAILBACK_IMMEDIATE,
754                 .rr_weight     = RR_WEIGHT_NONE,
755                 .no_path_retry = 15,
756                 .checker_name  = RDAC,
757                 .prio_name     = PRIO_RDAC,
758                 .prio_args     = NULL,
759         },
760         {
761                 /* DELL MD32xx */
762                 .vendor        = "DELL",
763                 .product       = "MD32xx",
764                 .bl_product    = "Universal Xport",
765                 .features      = "2 pg_init_retries 50",
766                 .hwhandler     = "1 rdac",
767                 .pgpolicy      = GROUP_BY_PRIO,
768                 .pgfailback    = -FAILBACK_IMMEDIATE,
769                 .rr_weight     = RR_WEIGHT_NONE,
770                 .no_path_retry = 15,
771                 .checker_name  = RDAC,
772                 .prio_name     = PRIO_RDAC,
773                 .prio_args     = NULL,
774         },
775         {
776                 /* DELL MD32xxi */
777                 .vendor        = "DELL",
778                 .product       = "MD32xxi",
779                 .bl_product    = "Universal Xport",
780                 .features      = "2 pg_init_retries 50",
781                 .hwhandler     = "1 rdac",
782                 .pgpolicy      = GROUP_BY_PRIO,
783                 .pgfailback    = -FAILBACK_IMMEDIATE,
784                 .rr_weight     = RR_WEIGHT_NONE,
785                 .no_path_retry = 15,
786                 .checker_name  = RDAC,
787                 .prio_name     = PRIO_RDAC,
788                 .prio_args     = NULL,
789         },
790         {
791                 /* DELL MD36xxi */
792                 .vendor        = "DELL",
793                 .product       = "MD36xxi",
794                 .bl_product    = "Universal Xport",
795                 .features      = "2 pg_init_retries 50",
796                 .hwhandler     = "1 rdac",
797                 .pgpolicy      = GROUP_BY_PRIO,
798                 .pgfailback    = -FAILBACK_IMMEDIATE,
799                 .rr_weight     = RR_WEIGHT_NONE,
800                 .no_path_retry = 15,
801                 .checker_name  = RDAC,
802                 .prio_name     = PRIO_RDAC,
803                 .prio_args     = NULL,
804         },
805         {
806                 /* DELL MD36xxf */
807                 .vendor        = "DELL",
808                 .product       = "MD36xxf",
809                 .bl_product    = "Universal Xport",
810                 .features      = "2 pg_init_retries 50",
811                 .hwhandler     = "1 rdac",
812                 .pgpolicy      = GROUP_BY_PRIO,
813                 .pgfailback    = -FAILBACK_IMMEDIATE,
814                 .rr_weight     = RR_WEIGHT_NONE,
815                 .no_path_retry = 15,
816                 .checker_name  = RDAC,
817                 .prio_name     = PRIO_RDAC,
818                 .prio_args     = NULL,
819         },
820         /*
821          * NETAPP controller family
822          *
823          * Maintainer : Dave Wysochanski
824          * Mail : davidw@netapp.com
825          */
826         {
827                 .vendor        = "NETAPP",
828                 .product       = "LUN.*",
829                 .features      = "3 queue_if_no_path pg_init_retries 50",
830                 .hwhandler     = DEFAULT_HWHANDLER,
831                 .pgpolicy      = GROUP_BY_PRIO,
832                 .pgfailback    = -FAILBACK_IMMEDIATE,
833                 .flush_on_last_del = FLUSH_ENABLED,
834                 .rr_weight     = RR_WEIGHT_NONE,
835                 .no_path_retry = NO_PATH_RETRY_UNDEF,
836                 .minio         = 128,
837                 .dev_loss      = MAX_DEV_LOSS_TMO,
838                 .checker_name  = TUR,
839                 .prio_name     = PRIO_ONTAP,
840                 .prio_args     = NULL,
841                 .retain_hwhandler = RETAIN_HWHANDLER_ON,
842                 .user_friendly_names = USER_FRIENDLY_NAMES_OFF,
843                 .detect_prio   = DETECT_PRIO_ON,
844         },
845         /*
846          * NEXENTA/COMSTAR controller family
847          *
848          * Maintainer : Yacine Kheddache
849          * Mail : yacine@alyseo.com
850          */
851         {
852                 .vendor        = "NEXENTA",
853                 .product       = "COMSTAR",
854                 .features      = "1 queue_if_no_path",
855                 .hwhandler     = DEFAULT_HWHANDLER,
856                 .pgpolicy      = GROUP_BY_SERIAL,
857                 .pgfailback    = -FAILBACK_IMMEDIATE,
858                 .rr_weight     = RR_WEIGHT_NONE,
859                 .no_path_retry = 30,
860                 .minio         = 128,
861                 .checker_name  = DIRECTIO,
862                 .prio_name     = DEFAULT_PRIO,
863                 .prio_args     = NULL,
864         },
865         /*
866          * IBM NSeries (NETAPP) controller family
867          *
868          * Maintainer : Dave Wysochanski
869          * Mail : davidw@netapp.com
870          */
871         {
872                 .vendor        = "IBM",
873                 .product       = "Nseries.*",
874                 .features      = "1 queue_if_no_path",
875                 .hwhandler     = DEFAULT_HWHANDLER,
876                 .pgpolicy      = GROUP_BY_PRIO,
877                 .pgfailback    = -FAILBACK_IMMEDIATE,
878                 .rr_weight     = RR_WEIGHT_NONE,
879                 .no_path_retry = NO_PATH_RETRY_UNDEF,
880                 .minio         = 128,
881                 .checker_name  = DIRECTIO,
882                 .prio_name     = PRIO_ONTAP,
883                 .prio_args     = NULL,
884         },
885         /*
886          * Pillar Data controller family
887          *
888          * Maintainer : Srinivasan Ramani
889          * Mail : sramani@pillardata.com
890          */
891         {
892                 .vendor        = "Pillar",
893                 .product       = "Axiom.*",
894                 .features      = DEFAULT_FEATURES,
895                 .hwhandler     = DEFAULT_HWHANDLER,
896                 .pgpolicy      = GROUP_BY_PRIO,
897                 .pgfailback    = FAILBACK_UNDEF,
898                 .rr_weight     = RR_WEIGHT_NONE,
899                 .no_path_retry = NO_PATH_RETRY_UNDEF,
900                 .checker_name  = TUR,
901                 .prio_name     = PRIO_ALUA,
902                 .prio_args     = NULL,
903         },
904
905         /*
906          * SGI arrays
907          *
908          * Maintainer : Christophe Varoqui
909          * Mail : christophe.varoqui@opensvc.com
910          */
911         {
912                 .vendor        = "SGI",
913                 .product       = "TP9[13]00",
914                 .features      = DEFAULT_FEATURES,
915                 .hwhandler     = DEFAULT_HWHANDLER,
916                 .pgpolicy      = MULTIBUS,
917                 .pgfailback    = FAILBACK_UNDEF,
918                 .rr_weight     = RR_WEIGHT_NONE,
919                 .no_path_retry = NO_PATH_RETRY_UNDEF,
920                 .checker_name  = DIRECTIO,
921                 .prio_name     = DEFAULT_PRIO,
922                 .prio_args     = NULL,
923         },
924         {
925                 .vendor        = "SGI",
926                 .product       = "TP9[45]00",
927                 .bl_product    = "Universal Xport",
928                 .features      = DEFAULT_FEATURES,
929                 .hwhandler     = "1 rdac",
930                 .pgpolicy      = GROUP_BY_PRIO,
931                 .pgfailback    = -FAILBACK_IMMEDIATE,
932                 .rr_weight     = RR_WEIGHT_NONE,
933                 .no_path_retry = NO_PATH_RETRY_QUEUE,
934                 .checker_name  = RDAC,
935                 .prio_name     = PRIO_RDAC,
936                 .prio_args     = NULL,
937         },
938         {
939                 .vendor        = "SGI",
940                 .product       = "IS.*",
941                 .bl_product    = "Universal Xport",
942                 .features      = "2 pg_init_retries 50",
943                 .hwhandler     = "1 rdac",
944                 .pgpolicy      = GROUP_BY_PRIO,
945                 .pgfailback    = -FAILBACK_IMMEDIATE,
946                 .rr_weight     = RR_WEIGHT_NONE,
947                 .no_path_retry = 15,
948                 .checker_name  = RDAC,
949                 .prio_name     = PRIO_RDAC,
950                 .prio_args     = NULL,
951         },
952         /* NEC Storage M Series */
953         {
954                 .vendor        = "NEC",
955                 .product       = "DISK ARRAY",
956                 .features      = DEFAULT_FEATURES,
957                 .hwhandler     = "1 alua",
958                 .pgpolicy      = GROUP_BY_PRIO,
959                 .pgfailback    = -FAILBACK_IMMEDIATE,
960                 .rr_weight     = RR_WEIGHT_NONE,
961                 .no_path_retry = NO_PATH_RETRY_UNDEF,
962                 .checker_name  = TUR,
963                 .prio_name     = PRIO_ALUA,
964                 .prio_args     = NULL,
965         },
966         /*
967          * STK arrays
968          *
969          * Maintainer : Christophe Varoqui
970          * Mail : christophe.varoqui@opensvc.com
971          */
972         {
973                 .vendor        = "STK",
974                 .product       = "OPENstorage D280",
975                 .bl_product    = "Universal Xport",
976                 .features      = DEFAULT_FEATURES,
977                 .hwhandler     = "1 rdac",
978                 .pgpolicy      = GROUP_BY_PRIO,
979                 .pgfailback    = -FAILBACK_IMMEDIATE,
980                 .rr_weight     = RR_WEIGHT_NONE,
981                 .no_path_retry = NO_PATH_RETRY_UNDEF,
982                 .checker_name  = TUR,
983                 .prio_name     = PRIO_RDAC,
984                 .prio_args     = NULL,
985         },
986         /*
987          * SUN arrays
988          *
989          * Maintainer : Christophe Varoqui
990          * Mail : christophe.varoqui@opensvc.com
991          */
992         {
993                 .vendor        = "SUN",
994                 .product       = "(StorEdge 3510|T4)",
995                 .features      = DEFAULT_FEATURES,
996                 .hwhandler     = DEFAULT_HWHANDLER,
997                 .pgpolicy      = MULTIBUS,
998                 .pgfailback    = FAILBACK_UNDEF,
999                 .rr_weight     = RR_WEIGHT_NONE,
1000                 .no_path_retry = NO_PATH_RETRY_UNDEF,
1001                 .checker_name  = DIRECTIO,
1002                 .prio_name     = DEFAULT_PRIO,
1003                 .prio_args     = NULL,
1004         },
1005         {
1006                 .vendor        = "SUN",
1007                 .product       = "STK6580_6780",
1008                 .features      = DEFAULT_FEATURES,
1009                 .hwhandler     = "1 rdac",
1010                 .pgpolicy      = GROUP_BY_PRIO,
1011                 .pgfailback    = -FAILBACK_IMMEDIATE,
1012                 .rr_weight     = RR_WEIGHT_NONE,
1013                 .no_path_retry = NO_PATH_RETRY_UNDEF,
1014                 .checker_name  = TUR,
1015                 .prio_name     = PRIO_RDAC,
1016                 .prio_args     = NULL,
1017         },
1018         {
1019                 .vendor        = "EUROLOGC",
1020                 .product       = "FC2502",
1021                 .features      = DEFAULT_FEATURES,
1022                 .hwhandler     = DEFAULT_HWHANDLER,
1023                 .pgpolicy      = GROUP_BY_PRIO,
1024                 .pgfailback    = FAILBACK_UNDEF,
1025                 .rr_weight     = RR_WEIGHT_NONE,
1026                 .no_path_retry = NO_PATH_RETRY_UNDEF,
1027                 .checker_name  = DEFAULT_CHECKER,
1028                 .prio_name     = DEFAULT_PRIO,
1029                 .prio_args     = NULL,
1030         },
1031         /*
1032          * Pivot3 RAIGE
1033          *
1034          * Maintainer : Bart Brooks, Pivot3
1035          * Mail : bartb@pivot3.com
1036          */
1037         {
1038                 .vendor        = "PIVOT3",
1039                 .product       = "RAIGE VOLUME",
1040                 .features      = "1 queue_if_no_path",
1041                 .hwhandler     = DEFAULT_HWHANDLER,
1042                 .pgpolicy      = MULTIBUS,
1043                 .pgfailback    = FAILBACK_UNDEF,
1044                 .rr_weight     = RR_WEIGHT_NONE,
1045                 .no_path_retry = NO_PATH_RETRY_UNDEF,
1046                 .minio         = 100,
1047                 .checker_name  = TUR,
1048                 .prio_name     = DEFAULT_PRIO,
1049                 .prio_args     = NULL,
1050         },
1051         {
1052                 .vendor        = "SUN",
1053                 .product       = "CSM200_R",
1054                 .bl_product    = "Universal Xport",
1055                 .features      = DEFAULT_FEATURES,
1056                 .hwhandler     = "1 rdac",
1057                 .pgpolicy      = GROUP_BY_PRIO,
1058                 .pgfailback    = -FAILBACK_IMMEDIATE,
1059                 .rr_weight     = RR_WEIGHT_NONE,
1060                 .no_path_retry = NO_PATH_RETRY_QUEUE,
1061                 .checker_name  = RDAC,
1062                 .prio_name     = PRIO_RDAC,
1063                 .prio_args     = NULL,
1064         },
1065         /* SUN/LSI 2510, 2540, 2530, 2540 */
1066         {
1067                 .vendor        = "SUN",
1068                 .product       = "LCSM100_[IEFS]",
1069                 .bl_product    = "Universal Xport",
1070                 .features      = DEFAULT_FEATURES,
1071                 .hwhandler     = "1 rdac",
1072                 .pgpolicy      = GROUP_BY_PRIO,
1073                 .pgfailback    = -FAILBACK_IMMEDIATE,
1074                 .rr_weight     = RR_WEIGHT_NONE,
1075                 .no_path_retry = NO_PATH_RETRY_QUEUE,
1076                 .checker_name  = RDAC,
1077                 .prio_name     = PRIO_RDAC,
1078                 .prio_args     = NULL,
1079         },
1080         /* StorageTek 6180 */
1081         {
1082                 .vendor        = "SUN",
1083                 .product       = "SUN_6180",
1084                 .features      = DEFAULT_FEATURES,
1085                 .hwhandler     = "1 rdac",
1086                 .pgpolicy      = GROUP_BY_PRIO,
1087                 .pgfailback    = -FAILBACK_IMMEDIATE,
1088                 .rr_weight     = RR_WEIGHT_NONE,
1089                 .no_path_retry = NO_PATH_RETRY_QUEUE,
1090                 .minio         = DEFAULT_MINIO,
1091                 .minio_rq      = DEFAULT_MINIO_RQ,
1092                 .checker_name  = RDAC,
1093                 .prio_name     = PRIO_RDAC,
1094         },
1095         /* LSI/Engenio/NetApp E-Series RDAC storage
1096          *
1097          * Maintainer : Sean Stewart
1098          * Mail : sean.stewart@netapp.com
1099          */
1100         {
1101                 .vendor        = "(NETAPP|LSI|ENGENIO)",
1102                 .product       = "INF-01-00",
1103                 .bl_product    = "Universal Xport",
1104                 .features      = "2 pg_init_retries 50",
1105                 .hwhandler     = "1 rdac",
1106                 .pgpolicy      = GROUP_BY_PRIO,
1107                 .pgfailback    = -FAILBACK_IMMEDIATE,
1108                 .rr_weight     = RR_WEIGHT_NONE,
1109                 .no_path_retry = 30,
1110                 .checker_name  = RDAC,
1111                 .prio_name     = PRIO_RDAC,
1112                 .prio_args     = NULL,
1113                 .detect_prio   = DETECT_PRIO_ON,
1114                 .retain_hwhandler = RETAIN_HWHANDLER_ON,
1115         },
1116         {
1117                 .vendor        = "STK",
1118                 .product       = "FLEXLINE 380",
1119                 .bl_product    = "Universal Xport",
1120                 .features      = DEFAULT_FEATURES,
1121                 .hwhandler     = "1 rdac",
1122                 .pgpolicy      = GROUP_BY_PRIO,
1123                 .pgfailback    = -FAILBACK_IMMEDIATE,
1124                 .rr_weight     = RR_WEIGHT_NONE,
1125                 .no_path_retry = NO_PATH_RETRY_QUEUE,
1126                 .checker_name  = RDAC,
1127                 .prio_name     = PRIO_RDAC,
1128                 .prio_args     = NULL,
1129         },
1130         {
1131                 .vendor        = "Intel",
1132                 .product       = "Multi-Flex",
1133                 .features      = DEFAULT_FEATURES,
1134                 .hwhandler     = "1 alua",
1135                 .pgpolicy      = GROUP_BY_PRIO,
1136                 .pgfailback    = -FAILBACK_IMMEDIATE,
1137                 .rr_weight     = RR_WEIGHT_NONE,
1138                 .no_path_retry = NO_PATH_RETRY_QUEUE,
1139                 .checker_name  = TUR,
1140                 .prio_name     = PRIO_ALUA,
1141                 .prio_args     = NULL,
1142         },
1143         {
1144                 .vendor        = "DataCore",
1145                 .product       = "SANmelody",
1146                 .features      = DEFAULT_FEATURES,
1147                 .hwhandler     = DEFAULT_HWHANDLER,
1148                 .pgpolicy      = GROUP_BY_PRIO,
1149                 .pgfailback    = -FAILBACK_IMMEDIATE,
1150                 .rr_weight     = RR_WEIGHT_NONE,
1151                 .no_path_retry = NO_PATH_RETRY_QUEUE,
1152                 .checker_name  = TUR,
1153                 .prio_name     = PRIO_ALUA,
1154                 .prio_args     = NULL,
1155         },
1156         {
1157                 .vendor        = "DataCore",
1158                 .product       = "Virtual Disk",
1159                 .features      = DEFAULT_FEATURES,
1160                 .hwhandler     = DEFAULT_HWHANDLER,
1161                 .pgpolicy      = GROUP_BY_PRIO,
1162                 .pgfailback    = -FAILBACK_IMMEDIATE,
1163                 .rr_weight     = RR_WEIGHT_NONE,
1164                 .no_path_retry = NO_PATH_RETRY_QUEUE,
1165                 .checker_name  = TUR,
1166                 .prio_name     = PRIO_ALUA,
1167                 .prio_args     = NULL,
1168         },
1169         {
1170                 .vendor        = "XtremIO",
1171                 .product       = "XtremApp",
1172                 .features      = DEFAULT_FEATURES,
1173                 .hwhandler     = DEFAULT_HWHANDLER,
1174                 .selector      = "queue-length 0",
1175                 .pgpolicy      = MULTIBUS,
1176                 .pgfailback    = -FAILBACK_IMMEDIATE,
1177                 .checker_name  = DIRECTIO,
1178                 .fast_io_fail  = 15,
1179                 .prio_name     = DEFAULT_PRIO,
1180                 .prio_args     = NULL,
1181         },
1182         /*
1183          * EOL
1184          */
1185         {
1186                 .vendor        = NULL,
1187                 .product       = NULL,
1188                 .features      = NULL,
1189                 .hwhandler     = NULL,
1190                 .selector      = NULL,
1191                 .pgpolicy      = 0,
1192                 .pgfailback    = 0,
1193                 .rr_weight     = 0,
1194                 .no_path_retry = 0,
1195                 .minio         = 0,
1196                 .minio_rq      = 0,
1197                 .checker_name  = NULL,
1198                 .prio_name     = NULL,
1199                 .prio_args     = NULL,
1200         },
1201 };
1202
1203 extern int
1204 setup_default_hwtable (vector hw)
1205 {
1206         int r = 0;
1207         struct hwentry * hwe = default_hw;
1208
1209         while (hwe->vendor) {
1210                 r += store_hwe(hw, hwe);
1211                 hwe++;
1212         }
1213         return r;
1214 }