diff options
author | Eli Britstein | 2019-03-18 09:25:59 +0000 |
---|---|---|
committer | Saeed Mahameed | 2019-03-29 12:24:43 -0700 |
commit | 7f1a546e322287ae948e0f5eb8d12b7b638d93a6 (patch) | |
tree | 2b669fc626ca55f611878690d88d919ff70d3564 /include | |
parent | e28408e98bced123038857b6e3c81fa12a2e3e68 (diff) |
net/mlx5e: Consider tunnel type for encap contexts
The driver allocates an encap context based on the tunnel properties,
and reuse that context for all flows using the same tunnel properties.
Commit df2ef3bff193 ("net/mlx5e: Add GRE protocol offloading")
introduced another tunnel protocol other than the single VXLAN
previously supported. A flow that uses a tunnel with the same tunnel
properties but with a different tunnel type (GRE vs VXLAN for example)
would mistakenly reuse the previous alocated context, causing the
traffic to be sent with the wrong encapsulation. Fix that by
considering the tunnel type for encap contexts.
Fixes: df2ef3bff193 ("net/mlx5e: Add GRE protocol offloading")
Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions