]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5: Fix creating a new FTE when an existing but full FTE exists
authorMatan Barak <matanb@mellanox.com>
Thu, 10 Aug 2017 12:29:12 +0000 (15:29 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 26 Sep 2017 17:51:51 +0000 (20:51 +0300)
commitb92af5a72ca982f0aa3df22f57a178aa5b0f4357
tree3824f4b56aa75cb6bc03ce7c36f6c8b378c29824
parente19b205be43d11bff638cad4487008c48d21c103
net/mlx5: Fix creating a new FTE when an existing but full FTE exists

Currently, when a flow steering rule is added, we look for a FTE with
an identical value. If we find a match, we try to merge the required
destinations with the existing ones. In a case where the existing
destination list is full, the code should return an error to its
consumer. However, the current code just tries to create another FTE.
Fixing that by returning an error in this special scenario.

Fixes: f478be79a22e ("net/mlx5: Add hash table for flow groups in flow table")
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c