mirror of https://github.com/ARMmbed/mbed-os.git
Added delay to K64F/K66F ethernet TX when all descriptors are in use
Currently, if all TX descriptors are in use and IP stack calls K64F/K66F ethernet driver link out, link out drops the packet. Added 10ms delay to link out to wait for a descriptor to become available before dropping the packet.pull/7206/head
parent
db672b36c5
commit
5e8ed3364a
|
|
@ -485,8 +485,8 @@ bool Kinetis_EMAC::link_out(emac_mem_buf_t *buf)
|
|||
buf = copy_buf;
|
||||
}
|
||||
|
||||
/* Check if a descriptor is available for the transfer. */
|
||||
if (xTXDCountSem.wait(0) == 0) {
|
||||
/* Check if a descriptor is available for the transfer (wait 10ms before dropping the buffer) */
|
||||
if (xTXDCountSem.wait(10) == 0) {
|
||||
memory_manager->free(buf);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue