Skip to content
Commit 1f15bb4f authored by Vlad Buslov's avatar Vlad Buslov Committed by David S. Miller
Browse files

net: sched: flower: only return error from hw offload if skip_sw



Recently introduced tc_setup_flow_action() can fail when parsing tcf_exts
on some unsupported action commands. However, this should not affect the
case when user did not explicitly request hw offload by setting skip_sw
flag. Modify tc_setup_flow_action() callers to only propagate the error if
skip_sw flag is set for filter that is being offloaded, and set extack
error message in that case.

Signed-off-by: default avatarVlad Buslov <vladbu@mellanox.com>
Fixes: 3a7b6861

 ("cls_api: add translator to flow_action representation")
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cba2bf7a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment