diff options
author | 2017-12-04 09:57:43 +0200 | |
---|---|---|
committer | 2017-12-19 23:24:03 +0200 | |
commit | 0c1cc8b2215f5122ca614b5adca60346018758c3 (patch) | |
tree | 29ed30ddcfe4ddfcea7ea74bbf88af4798748579 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net/mlx5e: Add refcount to VXLAN structure (diff) | |
download | linux-dev-0c1cc8b2215f5122ca614b5adca60346018758c3.tar.xz linux-dev-0c1cc8b2215f5122ca614b5adca60346018758c3.zip |
net/mlx5e: Prevent possible races in VXLAN control flow
When calling add/remove VXLAN port, a lock must be held in order to
prevent race scenarios when more than one add/remove happens at the
same time.
Fix by holding our state_lock (mutex) as done by all other parts of the
driver.
Note that the spinlock protecting the radix-tree is still needed in
order to synchronize radix-tree access from softirq context.
Fixes: b3f63c3d5e2c ("net/mlx5e: Add netdev support for VXLAN tunneling")
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions