]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Dec 2021 08:32:42 +0000 (09:32 +0100)
commitd92781bf78db171c8a4fb7648307b846721cf70a
treecd403c8aad661aa5df6d411babb78ed001b20965
parent97cb5c82aa1dd85a39b1bd021c8b5f18af623779
flow_offload: return EOPNOTSUPP for the unsupported mpls action type

[ Upstream commit 166b6a46b78bf8b9559a6620c3032f9fe492e082 ]

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: 9838b20a7fb2 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sched/cls_api.c