OSDN Git Service

netfilter: flowtable: separate replace, destroy and stats to different workqueues
authorOz Shlomo <ozsh@nvidia.com>
Wed, 3 Mar 2021 12:59:53 +0000 (14:59 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 17 Mar 2021 23:31:19 +0000 (00:31 +0100)
commit2ed37183abb70233146dc82f19cb1cbceed2b505
treeed5e843a81048ab43e01d773a3b91601a0ece760
parentebfbc46b35cb70b9fbd88f376d7a33b79f60adff
netfilter: flowtable: separate replace, destroy and stats to different workqueues

Currently the flow table offload replace, destroy and stats work items are
executed on a single workqueue. As such, DESTROY and STATS commands may
be backloged after a burst of REPLACE work items. This scenario can bloat
up memory and may cause active connections to age.

Instatiate add, del and stats workqueues to avoid backlogs of non-dependent
actions. Provide sysfs control over the workqueue attributes, allowing
userspace applications to control the workqueue cpumask.

Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_offload.c