zephyr/drivers
Leandro Pereira 3587b97845 net: slip: Do not remove fragments when sending data
The rationale for removing fragments while sending them is to free the
memory they're using as soon as possible.  This worked fine because
most protocols implemented initially did not require any
retransmission, so the upper layers were never holding an extra
reference to the buffer (& their fragments).

This is not the case anymore, as the TCP layer holds a reference to
a buffer (& fragments) while confirmation from the peer has not been
received, allowing retransmission.

With this change, the fragments of a buffer are not removed when being
sent by the SLIP layer; however, the buffer is still deferenced when the
transmission is complete.  If nothing else holds a reference, all the
fragments are returned to their respective pools, like before.

Change-Id: I74966d72f6970b66f526ea0b765101077c843de2
Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
2017-01-20 16:23:17 +02:00
..
adc license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
aio license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
bluetooth Bluetooth: SPI: Replace Apache boilerplate with SPDX tag 2017-01-19 08:04:16 +02:00
clock_control license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
console license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
counter license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
dma license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
ethernet drivers/ethernet: Update default GPIO pin for the ENC28J60 module 2017-01-20 16:23:17 +02:00
flash license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
gpio drivers: QMSI GPIO: simplify driver reentrancy code using IS_ENABLED macro 2017-01-20 01:46:08 +00:00
grove license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
i2c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
ieee802154 license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
interrupt_controller license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
ipm license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
pci license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
pinmux license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
pwm license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
random license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
rtc license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
sensor license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
serial license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
shared_irq license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
slip net: slip: Do not remove fragments when sending data 2017-01-20 16:23:17 +02:00
spi license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
timer license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
usb license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
watchdog drivers: QMSI WDT: simplify driver reentrancy code using IS_ENABLED macro 2017-01-19 16:48:42 -08:00
Kconfig license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Makefile net: Make native IP stack the default 2016-12-02 12:41:17 +02:00