The simplest one would be to have rwlock to read/write active index.
Also something like that I think should work (just a sample, not tested or
compiled):
struct acl {
rte_acl_ctx *ctx[2];
rte_atomic32_t use;
uint32_t active;
};
update(struct acl *acl, …)
{
/* make s
The way the application is written assumes there will be a transition phase
where few threads will have OLD ACL results for the packets that are currently
handled, but once those set is flushed out all the new set of packets will be
back to the active set. So the system will be consistent after
2 matches
Mail list logo