Throttle switching kernel acceleration

Creating/destroying interfaces etc. does take some time. When e.g. receiving
a lot of sessions as new slave, we don't want to stay stuck creating
hundreds of interfaces while we are already receiving control messages
that we have to forward to master not too late. Switching kernel
acceleration can wait a bit most of the time.
This commit is contained in:
Samuel Thibault 2024-01-21 03:09:43 +01:00
parent a22295d804
commit a957ff08ee
2 changed files with 52 additions and 10 deletions

View file

@ -452,6 +452,9 @@ typedef struct
// time in milliseconds of the last fragment.
uint64_t prev_time;
// Pending kernel switch
int needs_switch;
// l2tp PPPoL2TP socket
int pppox_fd;
struct pppol2tp_ioc_stats last_stats;