mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
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
This commit is contained in:
parent
fa2db9145a
commit
6b2eaa836f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196840
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user