Author: mav
Date: Sat Nov 21 21:44:11 2015
New Revision: 291147
URL: https://svnweb.freebsd.org/changeset/base/291147

Log:
  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:
  head/sys/dev/isp/isp_pci.c

Modified: head/sys/dev/isp/isp_pci.c
==============================================================================
--- head/sys/dev/isp/isp_pci.c  Sat Nov 21 21:18:55 2015        (r291146)
+++ head/sys/dev/isp/isp_pci.c  Sat Nov 21 21:44:11 2015        (r291147)
@@ -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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to