]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ec2f57a3437b95315475987cc35cc507848eaf8
tree8f20d8133412158c236c19e5a178461abdd8ec34
parent71e6a705e8d169d65597390d6c02a26adb9d20ac
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: 5962dab3383d ('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