freebsd 7.0-RELEASE BUG ping: sendto: No buffer space available
Yony Yossef
yonyossef.lists at gmail.com
Tue Jan 27 08:56:10 PST 2009
> "No buffer space available" is ENOBUFS. This error is
> returned when the ifq is full - see IFQ_ENQUEUE in if_var.h.
> You'll almost certainly want to set ifq_len to larger than
> the default for a 10 gigabit driver. This most likely to be a
> combination of ifq_len being too small and inadequate txq
> overflow handling. However, without the code to look at I can
> only guess.
>
> Cheers,
> Kip
---- my Tx loop is pretty normal (I've removed debug calls and irrelevant
parts):
while (!IFQ_DRV_IS_EMPTY(&dev->if_snd)) {
IFQ_DRV_DEQUEUE(&dev->if_snd, m_head);
if (m_head == NULL)
break;
if ( (err = mtnic_xmit_encap(priv, &m_head, &used)) != 0) {
priv->ifp->if_drv_flags |= IFF_DRV_OACTIVE;
IFQ_LOCK(&dev->if_snd);
IFQ_DRV_PREPEND(&dev->if_snd, m_head);
IFQ_UNLOCK(&dev->if_snd);
break;
}
ETHER_BPF_MTAP(dev, m_head);
}
---- my ifq_max_len is set to 4096, I believe it's bigger than the other
10GigE drivers (cxgb is using 1K, for instance):
dev->if_snd.ifq_drv_maxlen = MTNIC_TX_IFQ_MAXLEN; // = 4096
IFQ_SET_MAXLEN(&dev->if_snd, dev->if_snd.ifq_drv_maxlen);
IFQ_SET_READY(&dev->if_snd);
---- there's another strange symptom to this hang: after the 20 minutes I've
mentioned (caused by the sender full IFQ) I have to ping the sender from the
receiver side in order to retain traffic. During the 20 minutes it will not
work, but after it passes a single ping will make the sender IFQ go back to
life.
Yony
More information about the freebsd-net
mailing list