From b6ea8e84aef417550fa606343d39cafdaedf4385 Mon Sep 17 00:00:00 2001 From: mav Date: Mon, 30 Nov 2015 21:43:20 +0000 Subject: [PATCH] MFC r291147: 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). git-svn-id: svn://svn.freebsd.org/base/stable/10@291518 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/isp/isp_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 7ddf3c6af..9de13a282 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; -- 2.45.0