]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Fix error flow in creating matcher
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Tue, 14 Dec 2021 10:56:18 +0000 (12:56 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 31 Dec 2021 08:16:52 +0000 (00:16 -0800)
commita649a0e18f6749b0862dcbde774b7260a69b4a63
tree0c7c4bd70dda1ad45483ce5c72e65c8ce252ad95
parent189fa4bd74ca9d8372f30d2f2f4e5bff67f95fba
net/mlx5: DR, Fix error flow in creating matcher

The error code of nic matcher init functions wasn't checked.
This patch improves the matcher init function and fix error flow bug:
the handling of match parameter is moved into a separate function
and error flow is simplified.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c