diff options
author | Evan Lojewski <github@meklort.com> | 2019-08-05 20:20:41 -0600 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-08-05 20:20:41 -0600 |
commit | 8d48637b0cd9982bd9279eda451514b5e32b4980 (patch) | |
tree | 637a043a93d4d873aad4f0cf31568044b55a2b71 | |
parent | ed2a31e68ccb6a2c878462737a558ab02a5964a7 (diff) | |
download | bcm5719-ortega-8d48637b0cd9982bd9279eda451514b5e32b4980.tar.gz bcm5719-ortega-8d48637b0cd9982bd9279eda451514b5e32b4980.zip |
Add missing drainPassthroughBytes call when transmitting passthrough packets.
-rw-r--r-- | libs/Network/tx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/Network/tx.c b/libs/Network/tx.c index a1cd30e..e1d79b8 100644 --- a/libs/Network/tx.c +++ b/libs/Network/tx.c @@ -100,7 +100,7 @@ int32_t __attribute__((noinline)) Network_TX_allocateBlock(NetworkPort_t *port) if (APE_TX_TO_NET_BUFFER_ALLOCATOR_STATE_ALLOCATION_OK != status.bits.State) { block = -1; - printf("Error: Failed to allocate TX block.\n"); + printf("TX Alloc Error.\n"); } else { @@ -431,6 +431,7 @@ bool Network_TX_transmitPassthroughPacket(uint32_t length, NetworkPort_t *port) next_block = Network_TX_allocateBlock(port); if(next_block < 0) { + drainPassthroughBytes(length); return false; } } |