diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2017-08-16 12:06:15 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2017-08-17 13:57:34 +0200 |
commit | c1ff53f25d04ec1cc31844abd38014e91e398b5f (patch) | |
tree | a58ad3d9c9d95f2b68d3f3672bfe60abf27241f3 /src/plugins/acl/fa_node.h | |
parent | 2e342af835d6d752c743371d08071ed2dda8e62e (diff) |
acl-plugin: time out the sessions created by main thread too (VPP-948)
In multithread setup the main thread may send packets,
which may pass through the node with permit+reflect action.
This creates the connection in lists for thread0,
however in multithread there are no interupt handlers there.
Ensure we are not spending too much time spinning in a
tight cycle by suspending the main cleaner thread
until the current iteration of interrupts is processed.
Change-Id: Idb7346737757ee9a67b5d3e549bc9ad9aab22e89
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/plugins/acl/fa_node.h')
-rw-r--r-- | src/plugins/acl/fa_node.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/acl/fa_node.h b/src/plugins/acl/fa_node.h index a8dece4edcf..d5c766cd1fa 100644 --- a/src/plugins/acl/fa_node.h +++ b/src/plugins/acl/fa_node.h @@ -147,6 +147,10 @@ typedef struct { * because there is not enough work for the current rate. */ int interrupt_is_unwanted; + /* + * Set to copy of a "generation" counter in main thread so we can sync the interrupts. + */ + int interrupt_generation; } acl_fa_per_worker_data_t; |