]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: flower: only return error from hw offload if skip_sw
authorVlad Buslov <vladbu@mellanox.com>
Tue, 12 Feb 2019 21:39:06 +0000 (23:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 05:06:43 +0000 (21:06 -0800)
commit91eb1ac7057b6a5d150f2d7ed04cee947f30a5c9
treeecf4bf7c20a5c1983185f5851294abec066a0d6e
parentd4f7f1c83a3bb0c08f804781fee16e51998f2f4f
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: Vlad Buslov <vladbu@mellanox.com>
Fixes: 9f44bfb113fc ("cls_api: add translator to flow_action representation")
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c