]> git.baikalelectronics.ru Git - kernel.git/commit
flow_offload: return EOPNOTSUPP for the unsupported mpls action type
authorBaowen Zheng <baowen.zheng@corigine.com>
Mon, 13 Dec 2021 14:46:04 +0000 (15:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Dec 2021 12:33:19 +0000 (12:33 +0000)
commit5aa87e42c7b80399fd1530bdd6f3fc5fabc9cbb1
tree1ca172777ff53495f817458c7fc68d539d83fc1d
parent2c642a7ec7132550b42f39431d24ca29fdb959dd
flow_offload: return EOPNOTSUPP for the unsupported mpls action type

We need to return EOPNOTSUPP for the unsupported mpls action type when
setup the flow action.

In the original implement, we will return 0 for the unsupported mpls
action type, actually we do not setup it and the following actions
to the flow action entry.

Fixes: d3a744f37e2e ("net: sched: take rtnl lock in tc_setup_flow_action()")
Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c