[algo_thunder] add lid update

This commit is contained in:
Quentin 2019-08-26 12:18:05 +02:00
parent 0b43f944a8
commit 82e1359f28

View file

@ -11,7 +11,7 @@ struct thunder_ctx {
uint64_t lid_sent;
uint8_t selected_link;
uint8_t total_links;
uint64_t lid_sent_per_link[64];
uint8_t lid_sent_per_link[64];
uint8_t delta_t_per_link[64];
};
@ -47,7 +47,9 @@ int schedule(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo, struct bu
if (thunderc->selected_link == 0) {
thunderc->lid_sent++;
for (int i = 0; i < thunderc->total_links; i++) {
thunderc->lid_sent_per_link[i]++;
}
}
union abstract_packet links = {