]> 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)
commit8902b79013ac69948090679cdb518cd0b8ffc1b2
treecb2920318f319edde99e7dfc17853867b35782a5
parent8166c6beee4fcd85bf51565630b29f2df8f62991
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: ead57688fb76 ('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