mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-25 01:30:17 -06:00
Add compatibility with the 5.x kernel version eBPF verifier.
This commit is contained in:
parent
6ce7e7a3f9
commit
d0e575f317
@ -306,11 +306,10 @@ static __always_inline void process_tcp(
|
|||||||
) {
|
) {
|
||||||
__u64 elapsed = dissector->now - data->ts_change_time[other_rate_index];
|
__u64 elapsed = dissector->now - data->ts_change_time[other_rate_index];
|
||||||
if (elapsed < TWO_SECONDS_IN_NANOS) {
|
if (elapsed < TWO_SECONDS_IN_NANOS) {
|
||||||
struct flowbee_event event = {
|
struct flowbee_event event = { 0 };
|
||||||
.key = key,
|
event.key = key;
|
||||||
.round_trip_time = elapsed,
|
event.round_trip_time = elapsed;
|
||||||
.effective_direction = rate_index
|
event.effective_direction = rate_index;
|
||||||
};
|
|
||||||
bpf_ringbuf_output(&flowbee_events, &event, sizeof(event), 0);
|
bpf_ringbuf_output(&flowbee_events, &event, sizeof(event), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user