diff options
| author | Paul Blakey <paulb@mellanox.com> | 2020-05-06 14:24:39 +0300 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-05-11 16:26:33 +0200 |
| commit | 2c8897953f3b2ff5498f3f275708a742bfcdbc24 (patch) | |
| tree | 5b4b9c2b376a5327a3b5f6a9fd62b424f0be8877 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | netfilter: conntrack: avoid gcc-10 zero-length-bounds warning (diff) | |
| download | linux-2c8897953f3b2ff5498f3f275708a742bfcdbc24.tar.gz linux-2c8897953f3b2ff5498f3f275708a742bfcdbc24.zip | |
netfilter: flowtable: Add pending bit for offload work
Gc step can queue offloaded flow del work or stats work.
Those work items can race each other and a flow could be freed
before the stats work is executed and querying it.
To avoid that, add a pending bit that if a work exists for a flow
don't queue another work for it.
This will also avoid adding multiple stats works in case stats work
didn't complete but gc step started again.
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
