* [PATCH net-next v2] sfc: use flow_rule_is_supp_control_flags()
@ 2024-04-17 14:07 Asbjørn Sloth Tønnesen
2024-04-17 14:10 ` Edward Cree
2024-04-19 0:10 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Asbjørn Sloth Tønnesen @ 2024-04-17 14:07 UTC (permalink / raw)
To: netdev
Cc: Asbjørn Sloth Tønnesen, linux-kernel, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Edward Cree,
Martin Habets, linux-net-drivers
Change the check for unsupported control flags, to use the new helper
flow_rule_is_supp_control_flags().
Since the helper was based on sfc, then nothing really changes.
Compile-tested, and compiled objects are identical.
Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
---
Changelog:
v2:
- fix subject (noticed by Ed)
- remove #define (requested by Ed)
v1: https://lore.kernel.org/netdev/20240416134432.9527-1-ast@fiberby.net/
drivers/net/ethernet/sfc/tc.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/sfc/tc.c b/drivers/net/ethernet/sfc/tc.c
index 82e8891a619a..9d140203e273 100644
--- a/drivers/net/ethernet/sfc/tc.c
+++ b/drivers/net/ethernet/sfc/tc.c
@@ -273,11 +273,10 @@ static int efx_tc_flower_parse_match(struct efx_nic *efx,
match->value.ip_firstfrag = fm.key->flags & FLOW_DIS_FIRST_FRAG;
match->mask.ip_firstfrag = true;
}
- if (fm.mask->flags & ~(FLOW_DIS_IS_FRAGMENT | FLOW_DIS_FIRST_FRAG)) {
- NL_SET_ERR_MSG_FMT_MOD(extack, "Unsupported match on control.flags %#x",
- fm.mask->flags);
+ if (!flow_rule_is_supp_control_flags(FLOW_DIS_IS_FRAGMENT |
+ FLOW_DIS_FIRST_FRAG,
+ fm.mask->flags, extack))
return -EOPNOTSUPP;
- }
}
if (dissector->used_keys &
~(BIT_ULL(FLOW_DISSECTOR_KEY_CONTROL) |
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next v2] sfc: use flow_rule_is_supp_control_flags()
2024-04-17 14:07 [PATCH net-next v2] sfc: use flow_rule_is_supp_control_flags() Asbjørn Sloth Tønnesen
@ 2024-04-17 14:10 ` Edward Cree
2024-04-19 0:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Edward Cree @ 2024-04-17 14:10 UTC (permalink / raw)
To: Asbjørn Sloth Tønnesen, netdev
Cc: linux-kernel, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Martin Habets, linux-net-drivers
On 17/04/2024 15:07, Asbjørn Sloth Tønnesen wrote:
> Change the check for unsupported control flags, to use the new helper
> flow_rule_is_supp_control_flags().
>
> Since the helper was based on sfc, then nothing really changes.
>
> Compile-tested, and compiled objects are identical.
>
> Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next v2] sfc: use flow_rule_is_supp_control_flags()
2024-04-17 14:07 [PATCH net-next v2] sfc: use flow_rule_is_supp_control_flags() Asbjørn Sloth Tønnesen
2024-04-17 14:10 ` Edward Cree
@ 2024-04-19 0:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-04-19 0:10 UTC (permalink / raw)
To: =?utf-8?b?QXNiasO4cm4gU2xvdGggVMO4bm5lc2VuIDxhc3RAZmliZXJieS5uZXQ+?=
Cc: netdev, linux-kernel, davem, edumazet, kuba, pabeni,
ecree.xilinx, habetsm.xilinx, linux-net-drivers
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 17 Apr 2024 14:07:10 +0000 you wrote:
> Change the check for unsupported control flags, to use the new helper
> flow_rule_is_supp_control_flags().
>
> Since the helper was based on sfc, then nothing really changes.
>
> Compile-tested, and compiled objects are identical.
>
> [...]
Here is the summary with links:
- [net-next,v2] sfc: use flow_rule_is_supp_control_flags()
https://git.kernel.org/netdev/net-next/c/bb534830a74f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-19 0:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17 14:07 [PATCH net-next v2] sfc: use flow_rule_is_supp_control_flags() Asbjørn Sloth Tønnesen
2024-04-17 14:10 ` Edward Cree
2024-04-19 0:10 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.