net/mlx5e: Make sure the FW max encap size is enough for ipv4 tunnels
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 6 Apr 2017 16:20:21 +0000 (19:20 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 22 Apr 2017 18:52:37 +0000 (21:52 +0300)
commit32f3671f6951836cfe9d84e1a6554908b85c61d7
tree8f20d8133412158c236c19e5a178461abdd8ec34
parentc415f704c8276bc686abcb0497bf2606038ca73c
net/mlx5e: Make sure the FW max encap size is enough for ipv4 tunnels

Otherwise the code that fills the ipv4 encapsulation headers could be writing
beyond the allocated headers buffer.

Fixes: a54e20b4fcae ('net/mlx5e: Add basic TC tunnel set action for SRIOV offloads')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c