git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: fix tunnel offload hub multi-thread protection
[dpdk.git]
/
drivers
/
net
/
mlx5
/
mlx5_flow.h
diff --git
a/drivers/net/mlx5/mlx5_flow.h
b/drivers/net/mlx5/mlx5_flow.h
index
c33c0fe
..
f643842
100644
(file)
--- a/
drivers/net/mlx5/mlx5_flow.h
+++ b/
drivers/net/mlx5/mlx5_flow.h
@@
-950,8
+950,12
@@
struct mlx5_flow_tunnel {
/** PMD tunnel related context */
struct mlx5_flow_tunnel_hub {
/** PMD tunnel related context */
struct mlx5_flow_tunnel_hub {
+ /* Tunnels list
+ * Access to the list MUST be MT protected
+ */
LIST_HEAD(, mlx5_flow_tunnel) tunnels;
LIST_HEAD(, mlx5_flow_tunnel) tunnels;
- rte_spinlock_t sl; /* Tunnel list spinlock. */
+ /* protect access to the tunnels list */
+ rte_spinlock_t sl;
struct mlx5_hlist *groups; /** non tunnel groups */
};
struct mlx5_hlist *groups; /** non tunnel groups */
};