summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-08-05 20:20:41 -0600
committerEvan Lojewski <github@meklort.com>2019-08-05 20:20:41 -0600
commit8d48637b0cd9982bd9279eda451514b5e32b4980 (patch)
tree637a043a93d4d873aad4f0cf31568044b55a2b71 /libs
parented2a31e68ccb6a2c878462737a558ab02a5964a7 (diff)
downloadbcm5719-ortega-8d48637b0cd9982bd9279eda451514b5e32b4980.tar.gz
bcm5719-ortega-8d48637b0cd9982bd9279eda451514b5e32b4980.zip
Add missing drainPassthroughBytes call when transmitting passthrough packets.
Diffstat (limited to 'libs')
-rw-r--r--libs/Network/tx.c3
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;
}
}
OpenPOWER on IntegriCloud