]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Make sure the FW max encap size is enough for ipv6 tunnels
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 6 Apr 2017 16:28:30 +0000 (19:28 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 22 Apr 2017 18:52:37 +0000 (21:52 +0300)
commit0b1981e668f9071121096154dd1f0c0b708eb057
treecb2920318f319edde99e7dfc17853867b35782a5
parent0ec2f57a3437b95315475987cc35cc507848eaf8
net/mlx5e: Make sure the FW max encap size is enough for ipv6 tunnels

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

Fixes: 9feed98c9969 ('net/mlx5e: Support SRIOV TC encapsulation offloads for IPv6 tunnels')
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