mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 15:02:40 -04:00
net: ipv4: Add a flags argument to iptunnel_xmit(), udp_tunnel_xmit_skb()
iptunnel_xmit() erases the contents of the SKB control block. In order to be able to set particular IPCB flags on the SKB, add a corresponding parameter, and propagate it to udp_tunnel_xmit_skb() as well. In one of the following patches, VXLAN driver will use this facility to mark packets as subject to IP multicast routing. Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org> Acked-by: Antonio Quartulli <antonio@openvpn.net> Link: https://patch.msgid.link/89c9daf9f2dc088b6b92ccebcc929f51742de91f.1750113335.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
ccde40812a
commit
e3411e326f
@@ -1046,7 +1046,8 @@ static bool amt_send_membership_update(struct amt_dev *amt,
|
||||
amt->gw_port,
|
||||
amt->relay_port,
|
||||
false,
|
||||
false);
|
||||
false,
|
||||
0);
|
||||
amt_update_gw_status(amt, AMT_STATUS_SENT_UPDATE, true);
|
||||
return false;
|
||||
}
|
||||
@@ -1103,7 +1104,8 @@ static void amt_send_multicast_data(struct amt_dev *amt,
|
||||
amt->relay_port,
|
||||
tunnel->source_port,
|
||||
false,
|
||||
false);
|
||||
false,
|
||||
0);
|
||||
}
|
||||
|
||||
static bool amt_send_membership_query(struct amt_dev *amt,
|
||||
@@ -1161,7 +1163,8 @@ static bool amt_send_membership_query(struct amt_dev *amt,
|
||||
amt->relay_port,
|
||||
tunnel->source_port,
|
||||
false,
|
||||
false);
|
||||
false,
|
||||
0);
|
||||
amt_update_relay_status(tunnel, AMT_STATUS_SENT_QUERY, true);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user