]> 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)
commita61af227b67f8e6c91fa741eeb24be36ec25d1ea
tree0c7c4bd70dda1ad45483ce5c72e65c8ce252ad95
parent896cb0d979b7c28e1e8edd53a265e2699e9b7bdf
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