aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireguard/socket.c
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2025-06-16 22:44:14 +0000
committerJakub Kicinski <[email protected]>2025-06-18 01:18:45 +0000
commitf78c75d84fe83898f0a00658f593d4f17b38cbc6 (patch)
tree834ac6bf09dc5feba97b7941518c0832015f509b /drivers/net/wireguard/socket.c
parentnet: ipv6: Make udp_tunnel6_xmit_skb() void (diff)
downloadkernel-f78c75d84fe83898f0a00658f593d4f17b38cbc6.tar.gz
kernel-f78c75d84fe83898f0a00658f593d4f17b38cbc6.zip
net: ipv6: Add a flags argument to ip6tunnel_xmit(), udp_tunnel6_xmit_skb()
ip6tunnel_xmit() erases the contents of the SKB control block. In order to be able to set particular IP6CB flags on the SKB, add a corresponding parameter, and propagate it to udp_tunnel6_xmit_skb() as well. In one of the following patches, VXLAN driver will use this facility to mark packets as subject to IPv6 multicast routing. Signed-off-by: Petr Machata <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Reviewed-by: Nikolay Aleksandrov <[email protected]> Link: https://patch.msgid.link/acb4f9f3e40c3a931236c3af08a720b017fbfbfb.1750113335.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/wireguard/socket.c')
-rw-r--r--drivers/net/wireguard/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireguard/socket.c b/drivers/net/wireguard/socket.c
index 88e685667bc0..253488f8c00f 100644
--- a/drivers/net/wireguard/socket.c
+++ b/drivers/net/wireguard/socket.c
@@ -151,7 +151,7 @@ static int send6(struct wg_device *wg, struct sk_buff *skb,
skb->ignore_df = 1;
udp_tunnel6_xmit_skb(dst, sock, skb, skb->dev, &fl.saddr, &fl.daddr, ds,
ip6_dst_hoplimit(dst), 0, fl.fl6_sport,
- fl.fl6_dport, false);
+ fl.fl6_dport, false, 0);
goto out;
err: