summaryrefslogtreecommitdiffstats
path: root/libs/Network/tx.c
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2020-02-23 23:05:05 -0700
committerGitHub <noreply@github.com>2020-02-23 23:05:05 -0700
commit68c91bcbb5b72edda10154c48d2f64edc11bd132 (patch)
treeb8ec1b6d48c4f4a729dd0885f68b8865bee10ee2 /libs/Network/tx.c
parent36dc3c2aabc9985f040eb7702bda87fdd068c524 (diff)
downloadbcm5719-ortega-68c91bcbb5b72edda10154c48d2f64edc11bd132.tar.gz
bcm5719-ortega-68c91bcbb5b72edda10154c48d2f64edc11bd132.zip
ncsi: Print network statistics on a Get Link Status command instead of for each packet. (#38)
Diffstat (limited to 'libs/Network/tx.c')
-rw-r--r--libs/Network/tx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/Network/tx.c b/libs/Network/tx.c
index 42231d6..c83edaf 100644
--- a/libs/Network/tx.c
+++ b/libs/Network/tx.c
@@ -424,8 +424,6 @@ bool Network_TX_transmitPassthroughPacket(uint32_t length, NetworkPort_t *port)
uint32_t blocks = Network_TX_numBlocksNeeded(length);
int total_blocks = blocks;
- printf("Sending passhrough packet to Net. First block: %d (%d total).\n", first, blocks);
-
if (blocks > 1)
{
next_block = Network_TX_allocateBlock(port);
@@ -473,5 +471,8 @@ bool Network_TX_transmitPassthroughPacket(uint32_t length, NetworkPort_t *port)
uint32_t data = APE_PERI.BmcToNcReadBuffer.r32;
(void)data;
+ // Packet transmitted.
+ ++port->shm_channel->NcsiChannelCtrlstatAllTx.r32;
+
return true;
}
OpenPOWER on IntegriCloud