aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/transport.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-08-02 12:52:00 -0700
committerDave Wallace <dwallacelf@gmail.com>2019-08-05 16:24:45 +0000
commit0048223baad2b58a4e91aaeb2d05886499bbe004 (patch)
treeb4990152bdda07f93b99e5fc75e4421353f53417 /src/vnet/session/transport.c
parent470b2a61659d76c1fc03352d42af6f3f3945330f (diff)
session: cache align transport base class
Type:refactor Also remove tx stats. Expectation is that transports will keep track of them. Change-Id: I083b328d87d0ad3688b630ddb5ef97827a4dbc2b Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/transport.c')
-rw-r--r--src/vnet/session/transport.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vnet/session/transport.c b/src/vnet/session/transport.c
index bb4c6817345..22a356eaae2 100644
--- a/src/vnet/session/transport.c
+++ b/src/vnet/session/transport.c
@@ -605,9 +605,8 @@ format_transport_pacer (u8 * s, va_list * args)
{
spacer_t *pacer = va_arg (*args, spacer_t *);
- s = format (s, "bucket %u max_burst %u tokens/period %.3f last_update %x",
- pacer->bucket, pacer->max_burst_size, pacer->tokens_per_period,
- pacer->last_update);
+ s = format (s, "bucket %u tokens/period %.3f last_update %x",
+ pacer->bucket, pacer->tokens_per_period, pacer->last_update);
return s;
}
@@ -709,9 +708,8 @@ transport_connection_tx_pacer_rate (transport_connection_t * tc)
}
void
-transport_connection_update_tx_stats (transport_connection_t * tc, u32 bytes)
+transport_connection_update_tx_bytes (transport_connection_t * tc, u32 bytes)
{
- tc->stats.tx_bytes += bytes;
if (transport_connection_is_tx_paced (tc))
spacer_update_bucket (&tc->pacer, bytes);
}