Author: np Date: Thu Aug 2 19:50:12 2018 New Revision: 337168 URL: https://svnweb.freebsd.org/changeset/base/337168
Log: cxgbe(4): Use the tx credit limit for ethofld rather than TOE when initializing the softc for a per-flow rate limiter. The limit happens to be the same for both and the existing code worked by accident for common configurations. Reported by: gallatin@ Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/t4_sched.c Modified: head/sys/dev/cxgbe/t4_sched.c ============================================================================== --- head/sys/dev/cxgbe/t4_sched.c Thu Aug 2 19:37:13 2018 (r337167) +++ head/sys/dev/cxgbe/t4_sched.c Thu Aug 2 19:50:12 2018 (r337168) @@ -597,7 +597,7 @@ failed: cst->port_id = pi->port_id; cst->schedcl = schedcl; cst->max_rate = params->rate_limit.max_rate; - cst->tx_credits = sc->params.ofldq_wr_cred; + cst->tx_credits = sc->params.eo_wr_cred; cst->tx_total = cst->tx_credits; cst->plen = 0; cst->ctrl0 = htobe32(V_TXPKT_OPCODE(CPL_TX_PKT) | _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"