* [PATCH iproute2-next] ip: VXLAN: Add support for IFLA_VXLAN_MC_ROUTE
@ 2025-06-18 15:44 Petr Machata
2025-06-19 5:38 ` Ido Schimmel
2025-06-22 17:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Petr Machata @ 2025-06-18 15:44 UTC (permalink / raw)
To: David Ahern, netdev; +Cc: Ido Schimmel, Petr Machata
The flag controls whether underlay packets should be MC-routed or (default)
sent to the indicated physical netdevice.
Signed-off-by: Petr Machata <petrm@nvidia.com>
---
ip/iplink_vxlan.c | 10 ++++++++++
man/man8/ip-link.8.in | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c
index 9649a8eb..a6e95398 100644
--- a/ip/iplink_vxlan.c
+++ b/ip/iplink_vxlan.c
@@ -37,6 +37,7 @@ static const struct vxlan_bool_opt {
{ "remcsum_tx", IFLA_VXLAN_REMCSUM_TX, false },
{ "remcsum_rx", IFLA_VXLAN_REMCSUM_RX, false },
{ "localbypass", IFLA_VXLAN_LOCALBYPASS, true },
+ { "mcroute", IFLA_VXLAN_MC_ROUTE, false },
};
static void print_explain(FILE *f)
@@ -67,6 +68,7 @@ static void print_explain(FILE *f)
" [ [no]localbypass ]\n"
" [ [no]external ] [ gbp ] [ gpe ]\n"
" [ [no]vnifilter ]\n"
+ " [ [no]mcroute ]\n"
"\n"
"Where: VNI := 0-16777215\n"
" ADDR := { IP_ADDRESS | any }\n"
@@ -378,6 +380,14 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv,
check_duparg(&attrs, IFLA_VXLAN_VNIFILTER,
*argv, *argv);
addattr8(n, 1024, IFLA_VXLAN_VNIFILTER, 0);
+ } else if (!strcmp(*argv, "mcroute")) {
+ check_duparg(&attrs, IFLA_VXLAN_MC_ROUTE,
+ *argv, *argv);
+ addattr8(n, 1024, IFLA_VXLAN_MC_ROUTE, 1);
+ } else if (!strcmp(*argv, "nomcroute")) {
+ check_duparg(&attrs, IFLA_VXLAN_MC_ROUTE,
+ *argv, *argv);
+ addattr8(n, 1024, IFLA_VXLAN_MC_ROUTE, 0);
} else if (matches(*argv, "help") == 0) {
explain();
return -1;
diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index 91fa0cf1..e3297c57 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -663,6 +663,8 @@ the following additional arguments are supported:
.B gpe
] [
.RB [ no ] vnifilter
+] [
+.RB [ no ] mcroute
]
.in +8
@@ -796,6 +798,14 @@ device with external flag set. once enabled, bridge vni command is used to manag
vni filtering table on the device. The device can only receive packets with vni's configured
in the vni filtering table.
+.sp
+.RB [ no ] mcroute
+- when the VXLAN tunnel has a multicast remote, whether the underlay packets
+should be sent directly to the physical device (the default), or whether they
+should be multicast-routed. In the latter case, for purposes of matching a
+multicast route, (S,G) are, respectively, local and remote address of the
+tunnel, and iif is the tunnel physical device.
+
.sp
.B gbp
- enables the Group Policy extension (VXLAN-GBP).
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH iproute2-next] ip: VXLAN: Add support for IFLA_VXLAN_MC_ROUTE
2025-06-18 15:44 [PATCH iproute2-next] ip: VXLAN: Add support for IFLA_VXLAN_MC_ROUTE Petr Machata
@ 2025-06-19 5:38 ` Ido Schimmel
2025-06-22 17:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Ido Schimmel @ 2025-06-19 5:38 UTC (permalink / raw)
To: Petr Machata; +Cc: David Ahern, netdev
On Wed, Jun 18, 2025 at 05:44:43PM +0200, Petr Machata wrote:
> The flag controls whether underlay packets should be MC-routed or (default)
> sent to the indicated physical netdevice.
>
> Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH iproute2-next] ip: VXLAN: Add support for IFLA_VXLAN_MC_ROUTE
2025-06-18 15:44 [PATCH iproute2-next] ip: VXLAN: Add support for IFLA_VXLAN_MC_ROUTE Petr Machata
2025-06-19 5:38 ` Ido Schimmel
@ 2025-06-22 17:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-06-22 17:00 UTC (permalink / raw)
To: Petr Machata; +Cc: dsahern, netdev, idosch
Hello:
This patch was applied to iproute2/iproute2-next.git (main)
by David Ahern <dsahern@kernel.org>:
On Wed, 18 Jun 2025 17:44:43 +0200 you wrote:
> The flag controls whether underlay packets should be MC-routed or (default)
> sent to the indicated physical netdevice.
>
> Signed-off-by: Petr Machata <petrm@nvidia.com>
> ---
> ip/iplink_vxlan.c | 10 ++++++++++
> man/man8/ip-link.8.in | 10 ++++++++++
> 2 files changed, 20 insertions(+)
Here is the summary with links:
- [iproute2-next] ip: VXLAN: Add support for IFLA_VXLAN_MC_ROUTE
https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=633144499523
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:[~2025-06-22 16:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-18 15:44 [PATCH iproute2-next] ip: VXLAN: Add support for IFLA_VXLAN_MC_ROUTE Petr Machata
2025-06-19 5:38 ` Ido Schimmel
2025-06-22 17: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