Joel Cunningham ffaee59f3e loopif: only schedule poll when first packet is enqueued
This optimizes the netif_loop_output to only schedule a call to poll when
the first packet is enqueued. This ensures netif_poll is ran once per
burst of packets that are sent (which is typical in a TCP transfer)

The old behavior scheduled a call to poll for every packet that was
enqueued and this lead to exhaustion of the MEMP_TCPIP_MSG_API memory pool
and tcpip_mbox (if port is using static mbox size). The extra callbacks are
wasted work because netif_poll drains the entire queue when ran

This issue presented itself when large TCP transfer go across the loopback
netif
2018-05-02 09:16:01 -05:00
..
2018-04-25 21:17:47 +02:00
2018-01-08 21:37:31 +01:00
2017-09-17 20:38:38 +02:00
2018-02-13 14:04:01 -06:00
2017-10-27 15:33:18 -05:00
2018-02-01 09:19:16 +01:00
2018-02-01 09:19:16 +01:00