mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 07:14:06 +00:00
Complain if freelist queue sizes are significantly less than desired.
MFC after: 1 day
This commit is contained in:
parent
888ee87295
commit
1299e07187
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202678
|
@ -541,8 +541,12 @@ t3_sge_prep(adapter_t *adap, struct sge_params *p)
|
|||
jumbo_q_size = min(nmbjumbo4/(3*nqsets), JUMBO_Q_SIZE);
|
||||
#endif
|
||||
while (!powerof2(jumbo_q_size))
|
||||
jumbo_q_size--;
|
||||
|
||||
jumbo_q_size--;
|
||||
|
||||
if (fl_q_size < (FL_Q_SIZE / 4) || jumbo_q_size < (JUMBO_Q_SIZE / 2))
|
||||
device_printf(adap->dev,
|
||||
"Insufficient clusters and/or jumbo buffers.\n");
|
||||
|
||||
/* XXX Does ETHER_ALIGN need to be accounted for here? */
|
||||
p->max_pkt_size = adap->sge.qs[0].fl[1].buf_size - sizeof(struct cpl_rx_data);
|
||||
|
||||
|
|
Loading…
Reference in a new issue