Fix default numbers of iflib queue sets
authorshurd <shurd@FreeBSD.org>
Thu, 16 Nov 2017 18:52:58 +0000 (18:52 +0000)
committershurd <shurd@FreeBSD.org>
Thu, 16 Nov 2017 18:52:58 +0000 (18:52 +0000)
commit0708b7cc37fc11370477585a70788b69487ba372
tree32e5c77184ee50f22864a31d312d3945094ae513
parent4dd78370247d050cef7fddcf245a20eff1d692a8
Fix default numbers of iflib queue sets

The intent appears to be having one RX/TX queue set per core,
but since scctx->isc_n[tr]xqsets is set to max before calling
iflib_msix_init(), both end up being set to total number of cores.

Use ctx->ifc_sysctl_n[rt]xqs as the selected value and
scctx->isc_n[rt]xqsets as the max. This should result in what appears
to be the intended behaviour

Reviewed by: sbruno
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D13096
sys/net/iflib.c