From a89012b294129927afe837a37187fd3f4e5dfef2 Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Sat, 5 Dec 2015 10:10:18 +0000 Subject: [PATCH] Fix RSS build. Reported by: arybchik@ --- sys/dev/cxgbe/t4_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index 8a96b9bb22d4..edac7098535f 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -3916,7 +3916,7 @@ vi_full_init(struct vi_info *vi) for (i = 0; i < vi->rss_size;) { #ifdef RSS j = rss_get_indirection_to_bucket(i); - j %= pi->vrxq; + j %= vi->nrxq; rxq = &sc->sge.rxq[vi->first_rxq + j]; rss[i++] = rxq->iq.abs_id; #else