diff options
| author | Navdeep Parhar <np@FreeBSD.org> | 2018-05-17 06:04:50 +0000 |
|---|---|---|
| committer | Navdeep Parhar <np@FreeBSD.org> | 2018-05-17 06:04:50 +0000 |
| commit | d88a0442bb61927e28b15adc6fc1888bfc775379 (patch) | |
| tree | f02e5e30812d219145521785526f11a184acd0d4 /sys | |
| parent | ba2b3349e18e180fe722dcbe1115b3af74f01ff2 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/cxgbe/t4_main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index 95859ce001e4..e6d2e13bbed9 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -1057,7 +1057,8 @@ t4_attach(device_t dev) s->nofldtxq = nports * iaq.nofldtxq; if (num_vis > 1) s->nofldtxq += nports * (num_vis - 1) * iaq.nofldtxq_vi; - s->neq += s->nofldtxq + s->nofldrxq; + s->neq += s->nofldtxq; + s->ofld_txq = malloc(s->nofldtxq * sizeof(struct sge_wrq), M_CXGBE, M_ZERO | M_WAITOK); } @@ -1065,9 +1066,9 @@ t4_attach(device_t dev) #ifdef TCP_OFFLOAD if (is_offload(sc)) { s->nofldrxq = nports * iaq.nofldrxq; - if (num_vis > 1) { + if (num_vis > 1) s->nofldrxq += nports * (num_vis - 1) * iaq.nofldrxq_vi; - } + s->neq += s->nofldrxq; /* free list */ s->niq += s->nofldrxq; s->ofld_rxq = malloc(s->nofldrxq * sizeof(struct sge_ofld_rxq), |
