flow_offload: return EOPNOTSUPP for the unsupported mpls action type
Subsystems (3)
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.
--- net/sched/cls_api.c | 1 + 1 file changed, 1 insertion(+)
net/sched/cls_api.c +1 -0
@@ -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
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
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 typehttps://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]/
Jakub Kicinski
maintainerQuoted 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.
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.