Author: np
Date: Fri Oct 23 02:24:43 2020
New Revision: 366959
URL: https://svnweb.freebsd.org/changeset/base/366959

Log:
  cxgbe(4):  Fix min/max typo in r366958.

Modified:
  head/sys/dev/cxgbe/t4_sched.c

Modified: head/sys/dev/cxgbe/t4_sched.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sched.c       Fri Oct 23 01:36:54 2020        
(r366958)
+++ head/sys/dev/cxgbe/t4_sched.c       Fri Oct 23 02:24:43 2020        
(r366959)
@@ -924,10 +924,10 @@ cxgbe_ratelimit_query(struct ifnet *ifp, struct if_rat
        if (chip_id(sc) < CHELSIO_T6) {
                /* Based on testing by rrs@ with a T580 at burstsize = 4. */
                MPASS(q->min_segment_burst == 4);
-               q->max_flows = max(4000, q->max_flows);
+               q->max_flows = min(4000, q->max_flows);
        } else {
                /* XXX: TBD, carried forward from T5 for now. */
-               q->max_flows = max(4000, q->max_flows);
+               q->max_flows = min(4000, q->max_flows);
        }
 
        /*
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to