]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_flow.h
net/mlx5: make tunnel hub list thread safe
[dpdk.git] / drivers / net / mlx5 / mlx5_flow.h
index 99ce91677eabee2dfc2928eb95d5b2d92a29f8c1..3105463692969a5f3ed2b7e03cbabaf8cffc5b54 100644 (file)
@@ -945,6 +945,7 @@ struct mlx5_flow_tunnel {
 /** PMD tunnel related context */
 struct mlx5_flow_tunnel_hub {
        LIST_HEAD(, mlx5_flow_tunnel) tunnels;
+       rte_spinlock_t sl;                      /* Tunnel list spinlock. */
        struct mlx5_hlist *groups;              /** non tunnel groups */
 };