]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix erroneous freeing of encap header buffer
authorPaul Blakey <paulb@mellanox.com>
Tue, 5 Sep 2017 12:05:51 +0000 (15:05 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 Sep 2017 04:23:09 +0000 (07:23 +0300)
commit643daa95b16a4cef266ce761ce2f41f91e65e64e
tree24b0e11cd1f38b74d43c361472ceb2a0118f70b3
parent5e69784bac05dc972466e76f0911c866834b7c58
net/mlx5e: Fix erroneous freeing of encap header buffer

In case the neighbour for the tunnel destination isn't valid,
we send a neighbour update request but we free the encap
header buffer. This is wrong, because we still need it for
allocating a HW encap entry once the neighbour is available.

Fix that by skipping freeing it if we wait for neighbour.

Fixes: ccf500f6d873 ('net/mlx5e: Add support to neighbour update flow')
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c