]> git.itanic.dy.fi Git - linux-stable/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)
commit84dfac39c61fde04126e23723138128b50cd036f
tree0c7c4bd70dda1ad45483ce5c72e65c8ce252ad95
parentaf30f8eaa8fe4ff1987280f716309711997bd979
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