]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Add fail on error check on decap
authorAlex Vesker <valex@nvidia.com>
Tue, 22 Jun 2021 13:51:58 +0000 (16:51 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 10 Aug 2021 03:56:34 +0000 (20:56 -0700)
commit9c5b8ea244a55b66c0d871b593463714e1a1ded7
tree1ae74aadfc416853787d8031c6c1b72299898d8b
parent44495c7f50a935ada3da50e0895806e2087fc817
net/mlx5: DR, Add fail on error check on decap

While processing encapsulated packet on RX, one of the fields that is
checked is the inner packet length. If the length as specified in the header
doesn't match the actual inner packet length, the packet is invalid
and should be dropped. However, such packet caused the NIC to hang.

This patch turns on a 'fail_on_error' HW bit which allows HW to drop
such an invalid packet while processing RX packet and trying to decap it.

Fixes: 0e98cee536a8 ("net/mlx5: DR, Move STEv0 action apply logic")
Signed-off-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste_v0.c