Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2016 00:50:22 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306063 - head/sys/dev/cxgbe
Message-ID:  <201609210050.u8L0oM95078489@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) |



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609210050.u8L0oM95078489>