[algo_thunder] add lid update
This commit is contained in:
parent
0b43f944a8
commit
82e1359f28
1 changed files with 4 additions and 2 deletions
|
@ -11,7 +11,7 @@ struct thunder_ctx {
|
||||||
uint64_t lid_sent;
|
uint64_t lid_sent;
|
||||||
uint8_t selected_link;
|
uint8_t selected_link;
|
||||||
uint8_t total_links;
|
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];
|
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) {
|
if (thunderc->selected_link == 0) {
|
||||||
thunderc->lid_sent++;
|
thunderc->lid_sent++;
|
||||||
|
for (int i = 0; i < thunderc->total_links; i++) {
|
||||||
|
thunderc->lid_sent_per_link[i]++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
union abstract_packet links = {
|
union abstract_packet links = {
|
||||||
|
|
Loading…
Reference in a new issue