mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 20:33:49 -04:00
net/mlx5e: Fix error codes in alloc_branch_attr()
Set the error code if set_branch_dest_ft() fails.
Fixes: ccbe33003b ("net/mlx5e: TC, Don't offload post action rule if not supported")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
committed by
Saeed Mahameed
parent
86d5922679
commit
d792e5f7f1
@@ -3778,7 +3778,8 @@ alloc_branch_attr(struct mlx5e_tc_flow *flow,
|
||||
break;
|
||||
case FLOW_ACTION_ACCEPT:
|
||||
case FLOW_ACTION_PIPE:
|
||||
if (set_branch_dest_ft(flow->priv, attr))
|
||||
err = set_branch_dest_ft(flow->priv, attr);
|
||||
if (err)
|
||||
goto out_err;
|
||||
break;
|
||||
case FLOW_ACTION_JUMP:
|
||||
@@ -3788,7 +3789,8 @@ alloc_branch_attr(struct mlx5e_tc_flow *flow,
|
||||
goto out_err;
|
||||
}
|
||||
*jump_count = cond->extval;
|
||||
if (set_branch_dest_ft(flow->priv, attr))
|
||||
err = set_branch_dest_ft(flow->priv, attr);
|
||||
if (err)
|
||||
goto out_err;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user