Skip to contentSkip to conversation

openvswitch: Pass on secpath details for internal port rx.

PATCH Applied Aaron Conole 3 participants 3 messages Nov 1, 2024 – Nov 6, 2024

Subsystems (3)
lore
Share & tools
lore

Aaron Conole

author maintainer
#0 lore raw

PATCH 1/1 openvswitch: Pass on secpath details for internal port rx.

Clearing the secpath for internal ports will cause packet drops when ipsec offload or early SW ipsec decrypt are used. Systems that rely on these will not be able to actually pass traffic via openvswitch.

There is still an open issue for a flow miss packet - this is because we drop the extensions during upcall and there is no facility to restore such data (and it is non-trivial to add such functionality to the upcall interface). That means that when a flow miss occurs, there will still be packet drops. With this patch, when a flow is found then traffic which has an associated xfrm extension will properly flow.

---
 net/openvswitch/vport-internal_dev.c | 1 -
 1 file changed, 1 deletion(-)
net/openvswitch/vport-internal_dev.c +0 -1
index 5858d65ea1a9..2412d7813d24 100644
@@ -195,7 +195,6 @@ static int internal_dev_recv(struct sk_buff *skb)
 
 	skb_dst_drop(skb);
 	nf_reset_ct(skb);
-	secpath_reset(skb);
 
 	skb->pkt_type = PACKET_HOST;
 	skb->protocol = eth_type_trans(skb, netdev);
Signature · 1 line
2.46.2
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Aaron Conole

Clearing the secpath for internal ports will cause packet drops when ipsec offload or early SW ipsec decrypt are used. Systems that rely on these will not be able to actually pass traffic via openvswitch.

There is still an open issue for a flow miss packet - this is because we drop the extensions during upcall and there is no facility to restore such data (and it is non-trivial to add such functionality to the upcall interface). That means that when a flow miss occurs, there will still be packet drops. With this patch, when a flow is found then traffic which has an associated xfrm extension will properly flow.

Quoted 1 line

Thanks for debugging and fixing this. The change looks good to me.

#2 lore raw
In reply to Aaron Conole
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 12 lines · On Fri, 1 Nov 2024 16:47:32 -0400 you wrote:

Clearing the secpath for internal ports will cause packet drops when ipsec offload or early SW ipsec decrypt are used. Systems that rely on these will not be able to actually pass traffic via openvswitch.

There is still an open issue for a flow miss packet - this is because we drop the extensions during upcall and there is no facility to restore such data (and it is non-trivial to add such functionality to the upcall interface). That means that when a flow miss occurs, there will still be packet drops. With this patch, when a flow is found then traffic which has an associated xfrm extension will properly flow.

Quoted 1 line

[...]

Here is the summary with links:
- [net-next] openvswitch: Pass on secpath details for internal port rx.

    https://git.kernel.org/netdev/net-next/c/7d1c2d517f50

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html