Skip to content

Commit 42f853b

Browse files
blocktrronPaolo Abeni
authored andcommitted
net l2tp: drop flow hash on forward
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: d9e31d1 ("l2tp: Add L2TP ethernet pseudowire support") Acked-by: James Chapman <[email protected]> Signed-off-by: David Bauer <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 4b911a9 commit 42f853b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/l2tp/l2tp_eth.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb,
127127
/* checksums verified by L2TP */
128128
skb->ip_summed = CHECKSUM_NONE;
129129

130+
/* drop outer flow-hash */
131+
skb_clear_hash(skb);
132+
130133
skb_dst_drop(skb);
131134
nf_reset_ct(skb);
132135

0 commit comments

Comments
 (0)