svn commit: r306063 - head/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Wed Sep 21 00:50:24 UTC 2016


Author: np
Date: Wed Sep 21 00:50:22 2016
New Revision: 306063
URL: https://svnweb.freebsd.org/changeset/base/306063

Log:
  cxgbe(4): Setup congestion response for T6 rx queues.

Modified:
  head/sys/dev/cxgbe/t4_netmap.c
  head/sys/dev/cxgbe/t4_sge.c

Modified: head/sys/dev/cxgbe/t4_netmap.c
==============================================================================
--- head/sys/dev/cxgbe/t4_netmap.c	Wed Sep 21 00:46:08 2016	(r306062)
+++ head/sys/dev/cxgbe/t4_netmap.c	Wed Sep 21 00:50:22 2016	(r306063)
@@ -178,7 +178,7 @@ alloc_nm_rxq_hwq(struct vi_info *vi, str
 	nm_rxq->fl_db_val = V_QID(nm_rxq->fl_cntxt_id) |
 	    sc->chip_params->sge_fl_db;
 
-	if (is_t5(sc) && cong >= 0) {
+	if (chip_id(sc) >= CHELSIO_T5 && cong >= 0) {
 		uint32_t param, val;
 
 		param = V_FW_PARAMS_MNEM(FW_PARAMS_MNEM_DMAQ) |

Modified: head/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sge.c	Wed Sep 21 00:46:08 2016	(r306062)
+++ head/sys/dev/cxgbe/t4_sge.c	Wed Sep 21 00:50:22 2016	(r306063)
@@ -2800,7 +2800,7 @@ alloc_iq_fl(struct vi_info *vi, struct s
 		FL_UNLOCK(fl);
 	}
 
-	if (is_t5(sc) && !(sc->flags & IS_VF) && cong >= 0) {
+	if (chip_id(sc) >= CHELSIO_T5 && !(sc->flags & IS_VF) && cong >= 0) {
 		uint32_t param, val;
 
 		param = V_FW_PARAMS_MNEM(FW_PARAMS_MNEM_DMAQ) |


More information about the svn-src-all mailing list