* [PATCH net] net l2tp: drop flow hash on forward
@ 2024-04-24 17:11 David Bauer
2024-04-26 9:58 ` Simon Horman
2024-04-26 12:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: David Bauer @ 2024-04-24 17:11 UTC (permalink / raw)
To: davem, edumazet, kuba, pabeni; +Cc: netdev, James Chapman
Drop the flow-hash of the skb when forwarding to the L2TP netdev.
This avoids the L2TP qdisc from using the flow-hash from the outer
packet, which is identical for every flow within the tunnel.
This does not affect every platform but is specific for the ethernet
driver. It depends on the platform including L4 information in the
flow-hash.
One such example is the Mediatek Filogic MT798x family of networking
processors.
Fixes: d9e31d17ceba ("l2tp: Add L2TP ethernet pseudowire support")
Acked-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David Bauer <mail@david-bauer.net>
---
net/l2tp/l2tp_eth.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c
index 39e487ccc468..8ba00ad433c2 100644
--- a/net/l2tp/l2tp_eth.c
+++ b/net/l2tp/l2tp_eth.c
@@ -127,6 +127,9 @@ static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb,
/* checksums verified by L2TP */
skb->ip_summed = CHECKSUM_NONE;
+ /* drop outer flow-hash */
+ skb_clear_hash(skb);
+
skb_dst_drop(skb);
nf_reset_ct(skb);
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] net l2tp: drop flow hash on forward
2024-04-24 17:11 [PATCH net] net l2tp: drop flow hash on forward David Bauer
@ 2024-04-26 9:58 ` Simon Horman
2024-04-26 12:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2024-04-26 9:58 UTC (permalink / raw)
To: David Bauer
Cc: davem, edumazet, kuba, pabeni, netdev, James Chapman,
Randy Dunlap
+ Randy Dunlap
On Wed, Apr 24, 2024 at 07:11:10PM +0200, David Bauer wrote:
> Drop the flow-hash of the skb when forwarding to the L2TP netdev.
>
> This avoids the L2TP qdisc from using the flow-hash from the outer
> packet, which is identical for every flow within the tunnel.
>
> This does not affect every platform but is specific for the ethernet
> driver. It depends on the platform including L4 information in the
> flow-hash.
>
> One such example is the Mediatek Filogic MT798x family of networking
> processors.
>
> Fixes: d9e31d17ceba ("l2tp: Add L2TP ethernet pseudowire support")
> Acked-by: James Chapman <jchapman@katalix.com>
> Signed-off-by: David Bauer <mail@david-bauer.net>
Reviewed-by: Simon Horman <horms@kernel.org>
> ---
> net/l2tp/l2tp_eth.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c
> index 39e487ccc468..8ba00ad433c2 100644
> --- a/net/l2tp/l2tp_eth.c
> +++ b/net/l2tp/l2tp_eth.c
> @@ -127,6 +127,9 @@ static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb,
> /* checksums verified by L2TP */
> skb->ip_summed = CHECKSUM_NONE;
>
> + /* drop outer flow-hash */
> + skb_clear_hash(skb);
> +
> skb_dst_drop(skb);
> nf_reset_ct(skb);
>
> --
> 2.43.0
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] net l2tp: drop flow hash on forward
2024-04-24 17:11 [PATCH net] net l2tp: drop flow hash on forward David Bauer
2024-04-26 9:58 ` Simon Horman
@ 2024-04-26 12:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-04-26 12:00 UTC (permalink / raw)
To: David Bauer; +Cc: davem, edumazet, kuba, pabeni, netdev, jchapman
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Wed, 24 Apr 2024 19:11:10 +0200 you wrote:
> Drop the flow-hash of the skb when forwarding to the L2TP netdev.
>
> This avoids the L2TP qdisc from using the flow-hash from the outer
> packet, which is identical for every flow within the tunnel.
>
> This does not affect every platform but is specific for the ethernet
> driver. It depends on the platform including L4 information in the
> flow-hash.
>
> [...]
Here is the summary with links:
- [net] net l2tp: drop flow hash on forward
https://git.kernel.org/netdev/net/c/42f853b42899
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-26 12:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-24 17:11 [PATCH net] net l2tp: drop flow hash on forward David Bauer
2024-04-26 9:58 ` Simon Horman
2024-04-26 12:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).