From 3ec359d14cca32b854565cb156cc8b379e35a60e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 18 Jun 2014 09:44:06 -0600 Subject: [PATCH] Notify Ethernet driver of TX data availability on raw socket. From Daniel Lazlo Sitzer --- net/net_send_unbuffered.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net/net_send_unbuffered.c b/net/net_send_unbuffered.c index 375e362c5b..b5e2de18db 100644 --- a/net/net_send_unbuffered.c +++ b/net/net_send_unbuffered.c @@ -277,6 +277,11 @@ static ssize_t pktsend(FAR struct socket *psock, FAR const void *buf, state.snd_cb->priv = (void*)&state; state.snd_cb->event = pktsend_interrupt; + /* Notify the device driver of the availability of TX data */ + + struct uip_driver_s *dev = netdev_findbyname("eth0"); + dev->d_txavail(dev); + /* Wait for the send to complete or an error to occure: NOTES: (1) * uip_lockedwait will also terminate if a signal is received, (2) * interrupts may be disabled! They will be re-enabled while the