diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2020-12-12 10:32:01 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2020-12-12 11:38:05 +0100 |
commit | 5a26b4822380f8b8aed83937237fa0217b0a8b41 (patch) | |
tree | 95af5008dbf32a42b0235d218ee07d139ca78235 /src | |
parent | 132d2145a6e89ac0f4454ba7f257a910da2ef674 (diff) | |
download | ouroboros-5a26b4822380f8b8aed83937237fa0217b0a8b41.tar.gz ouroboros-5a26b4822380f8b8aed83937237fa0217b0a8b41.zip |
ipcpd: Remove unused variable in MB-ECN policy
The t_sent variable is a remnant from the first version and isn't
needed anymore.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src')
-rw-r--r-- | src/ipcpd/unicast/pol/ca-mb-ecn.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ipcpd/unicast/pol/ca-mb-ecn.c b/src/ipcpd/unicast/pol/ca-mb-ecn.c index 1791e42a..9560e211 100644 --- a/src/ipcpd/unicast/pol/ca-mb-ecn.c +++ b/src/ipcpd/unicast/pol/ca-mb-ecn.c @@ -62,8 +62,6 @@ struct mb_ecn_ctx { size_t tx_mul; /* Slot size multiplier */ size_t tx_inc; /* Additive increase */ size_t tx_slot; - - struct timespec t_sent; /* Last sent packet */ }; struct pol_ca_ops mb_ecn_ca_ops = { @@ -113,8 +111,6 @@ ca_wnd_t mb_ecn_ctx_update_snd(void * _ctx, clock_gettime(PTHREAD_COND_CLOCK, &now); - ctx->t_sent = now; - slot = ts_to_ns(now) >> ctx->tx_mul; ctx->tx_ctr++; |