svn commit: r291518 - stable/10/sys/dev/isp

Alexander Motin mav at FreeBSD.org
Mon Nov 30 21:43:21 UTC 2015


Author: mav
Date: Mon Nov 30 21:43:20 2015
New Revision: 291518
URL: https://svnweb.freebsd.org/changeset/base/291518

Log:
  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).

Modified:
  stable/10/sys/dev/isp/isp_pci.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/isp/isp_pci.c
==============================================================================
--- stable/10/sys/dev/isp/isp_pci.c	Mon Nov 30 21:42:35 2015	(r291517)
+++ stable/10/sys/dev/isp/isp_pci.c	Mon Nov 30 21:43:20 2015	(r291518)
@@ -486,7 +486,7 @@ isp_get_generic_options(device_t dev, is
 	}
 	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;


More information about the svn-src-all mailing list