Skip to contentSkip to conversation

flow_offload: return EOPNOTSUPP for the unsupported mpls action type

PATCH Applied Simon Horman 3 participants 5 messages Dec 13, 2021 – Dec 15, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 flow_offload: return EOPNOTSUPP for the unsupported mpls action type

From: Baowen Zheng <[email protected]>

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()")
---
 net/sched/cls_api.c | 1 +
 1 file changed, 1 insertion(+)
net/sched/cls_api.c +1 -0
index 2ef8f5a6205a..e54f0a42270c 100644
@@ -3687,6 +3687,7 @@ int tc_setup_flow_action(struct flow_action *flow_action,
 				entry->mpls_mangle.ttl = tcf_mpls_ttl(act);
 				break;
 			default:
+				err = -EOPNOTSUPP;
 				goto err_out_locked;
 			}
 		} else if (is_tcf_skbedit_ptype(act)) {
Signature · 1 line
2.20.1
#1 lore raw
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 10 lines · On Mon, 13 Dec 2021 15:46:04 +0100 you wrote:

From: Baowen Zheng <[email protected]>

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.

[...]

Here is the summary with links:
- [net] flow_offload: return EOPNOTSUPP for the unsupported mpls action type

    https://git.kernel.org/netdev/net/c/166b6a46b78b

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
#2 lore raw
Quoted 15 lines · On Tue, Dec 14, 2021 at 12:40:10PM +0000, [email protected]…

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 9 lines · On Mon, 13 Dec 2021 15:46:04 +0100 you wrote:

From: Baowen Zheng <[email protected]>

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.

Quoted 5 lines
Quoted 1 line

[...]

Here is the summary with links:
- [net] flow_offload: return EOPNOTSUPP for the unsupported mpls action type

    https://git.kernel.org/netdev/net/c/166b6a46b78b

Thanks!

Could I ask for a merge of net into net-next?

The patch above will be a dependency for v7 of our metering offload patchset.

Ref:
- [PATCH v6 net-next 00/12] allow user to offload tc action to net device
https://lore.kernel.org/netdev/[email protected]/

maintainer
#3 lore raw
Quoted 8 lines · On Tue, 14 Dec 2021 15:34:29 +0100 Simon Horman wrote:

Could I ask for a merge of net into net-next?

The patch above will be a dependency for v7 of our metering offload patchset.

Ref:
- [PATCH v6 net-next 00/12] allow user to offload tc action to net device
https://lore.kernel.org/netdev/[email protected]/

Can it wait until Thu? We send PRs and merge every Thu these days.

#4 lore raw
Quoted 11 lines · Jakub Kicinski
Quoted 8 lines · On Tue, 14 Dec 2021 15:34:29 +0100 Simon Horman wrote:

Could I ask for a merge of net into net-next?

The patch above will be a dependency for v7 of our metering offload patchset.

Ref:
- [PATCH v6 net-next 00/12] allow user to offload tc action to net device
https://lore.kernel.org/netdev/[email protected]/

Can it wait until Thu? We send PRs and merge every Thu these days.

Sure, no problem.