net/mlx5e: aRFS, Warn if aRFS table does not exist for aRFS rule
aRFS tables should be allocated and exist in advance. Driver shouldn't reach a point where it tries to add aRFS rule to table that does not exist. Add warning if driver encounters such situation. Signed-off-by: Adham Faris <afaris@nvidia.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
7a73cf0bf7
commit
7653d80672
@ -519,6 +519,8 @@ static struct mlx5_flow_handle *arfs_add_rule(struct mlx5e_priv *priv,
|
|||||||
ntohs(tuple->etype));
|
ntohs(tuple->etype));
|
||||||
arfs_table = arfs_get_table(arfs, tuple->ip_proto, tuple->etype);
|
arfs_table = arfs_get_table(arfs, tuple->ip_proto, tuple->etype);
|
||||||
if (!arfs_table) {
|
if (!arfs_table) {
|
||||||
|
WARN_ONCE(1, "arfs table does not exist for etype %u and ip_proto %u\n",
|
||||||
|
tuple->etype, tuple->ip_proto);
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user