summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp/isp_pci.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-11-21 21:44:11 +0000
committermav <mav@FreeBSD.org>2015-11-21 21:44:11 +0000
commitc5fd633b0746755e272345b0b85fe40ed70c2570 (patch)
treec839f6e0fc14499a20bc96747f50903607433ea7 /sys/dev/isp/isp_pci.c
parent314c9be434e56881c415cd053664c6cc2314677f (diff)
downloadFreeBSD-src-c5fd633b0746755e272345b0b85fe40ed70c2570.zip
FreeBSD-src-c5fd633b0746755e272345b0b85fe40ed70c2570.tar.gz
Increase maximal value of vports tunable to 254.
I am not sure this value is really viable yet, but that is what chips officially support in NPIV mode (in loop mode maximum is 125).
Diffstat (limited to 'sys/dev/isp/isp_pci.c')
-rw-r--r--sys/dev/isp/isp_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index cbc1994..24f413f 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -486,7 +486,7 @@ isp_get_generic_options(device_t dev, ispsoftc_t *isp)
}
tval = -1;
(void) resource_int_value(device_get_name(dev), device_get_unit(dev), "vports", &tval);
- if (tval > 0 && tval < 127) {
+ if (tval > 0 && tval <= 254) {
isp_nvports = tval;
}
tval = 7;
OpenPOWER on IntegriCloud