diff options
author | jhb <jhb@FreeBSD.org> | 2009-09-04 21:00:45 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-09-04 21:00:45 +0000 |
commit | 81de4d9abd241822fe36eae39a995f9a38ea894f (patch) | |
tree | 18db9287166512c0cd6f4131c2f0d004cd66c423 /sys/dev/cxgb | |
parent | 825ace402b29407eb867251040cad5ae49118ae9 (diff) | |
download | FreeBSD-src-81de4d9abd241822fe36eae39a995f9a38ea894f.zip FreeBSD-src-81de4d9abd241822fe36eae39a995f9a38ea894f.tar.gz |
Fill the reverse RSS map with 0xff's so that the subsequent loop to
calculate the values will work properly.
Reviewed by: np
MFC after: 1 month
Diffstat (limited to 'sys/dev/cxgb')
-rw-r--r-- | sys/dev/cxgb/cxgb_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/cxgb/cxgb_main.c b/sys/dev/cxgb/cxgb_main.c index 21ce96d..596609b 100644 --- a/sys/dev/cxgb/cxgb_main.c +++ b/sys/dev/cxgb/cxgb_main.c @@ -1456,7 +1456,10 @@ setup_rss(adapter_t *adap) rspq_map[i] = nq[0] ? i % nq[0] : 0; rspq_map[i + RSS_TABLE_SIZE / 2] = nq[1] ? i % nq[1] + nq[0] : 0; } + /* Calculate the reverse RSS map table */ + for (i = 0; i < SGE_QSETS; ++i) + adap->rrss_map[i] = 0xff; for (i = 0; i < RSS_TABLE_SIZE; ++i) if (adap->rrss_map[rspq_map[i]] == 0xff) adap->rrss_map[rspq_map[i]] = i; |