Decouple limits on number of LUNs per port and LUs per CTL.
authormav <mav@FreeBSD.org>
Tue, 27 Dec 2016 18:23:16 +0000 (18:23 +0000)
committermav <mav@FreeBSD.org>
Tue, 27 Dec 2016 18:23:16 +0000 (18:23 +0000)
commitbb22c861b576c807c86cf1171c1ff354c72ffb1e
tree4497b30fac2cf1c4eb8706d17a8004b5326989aa
parentd67c23c6f669e5db43070faaa6d4dfe132022863
Decouple limits on number of LUNs per port and LUs per CTL.

Those two values are not directly related, so make them independent.
This does not change any limits immediately, but makes number of LUNs
per port controllable via tunable/sysctl kern.cam.ctl.lun_map_size.
After this change increasing CTL_MAX_LUNS should be pretty cheap,
and even making it tunable should be easy.

MFC after: 2 weeks
sys/cam/ctl/ctl.c
sys/cam/ctl/ctl_frontend.c
sys/cam/ctl/ctl_frontend.h
sys/cam/ctl/ctl_io.h