Skip to content

geneve: Allow binding UDP socket to a specific address.

Kuniyuki Iwashima netdev 5 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 0 repliesApplied 5/5
  2. v45 patches 4 repliesSuperseded
  3. v35 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v25 patches3 repliesSuperseded
v15 patches1 replySuperseded

Changes in v5 from the cover letter

* Patch 5 : Allow changelink with the same address : Dump LOCAL/LOCAL6 only when configured

Patches in v5 All 5 applied

#Subject and filesSizeRepliesApplied
1/5geneve: Reuse ipv6_addr_type() result in geneve_nl2info().drivers/net/geneve.c+5 -30 repliesApplied
2/5geneve: Pass struct geneve_dev to geneve_create_sock().drivers/net/geneve.c+9 -90 repliesApplied
3/5geneve: Pass struct geneve_dev to geneve_find_sock().drivers/net/geneve.c+20 -140 repliesApplied
4/5geneve: Add dualstack flag to struct geneve_config.drivers/net/geneve.c+16 -110 repliesApplied
5/5geneve: Introduce IFLA_GENEVE_LOCAL and IFLA_GENEVE_LOCAL6.Documentation/netlink/specs/rt-link.yaml drivers/net/geneve.c include/uapi/linux/if_link.h+169 -90 repliesApplied

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchEric Dumazet
1/5R-b
2/5R-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 net-next 0/5] geneve: Allow binding UDP socket to a specific address.

By default, a GENEVE device bind()s its underlying UDP socket(s) to the IPv4 or IPv6 wildcard address because there is no way to specify a specific local IP address to bind() to.

This prevents deploying multiple GENEVE devices on a multi-homed host where each device should be isolated and bound to a different local IP address on the same UDP port.

This series introduces two options to specify local IPv4 or IPv6 addresses for a GENEVE device.

The corresponding iproute2 patch is here:
https://lore.kernel.org/netdev/[email protected]/

Once this series and the iproute2 patch land upstream, I'll add a small selftest.

Changes:
v5:
* Patch 5 : Allow changelink with the same address : Dump LOCAL/LOCAL6 only when configured

v4: https://lore.kernel.org/netdev/[email protected]/
* Patch 5 : Simplify validation in geneve_nl2info()
: Add ynl spec

v3: https://lore.kernel.org/netdev/[email protected]/
* Patch 5 : Use NLA_POLICY_EXACT_LEN() for IFLA_GENEVE_LOCAL6. Mention source address in error messages in geneve_configure().

v2: https://lore.kernel.org/netdev/[email protected]/
* Patch 1 : Move addr_type to if-block for CONFIG_IPV6=n
* Patch 4 : Don't set cfg->dualstack for IFLA_GENEVE_REMOTE6?
* Patch 5 : Validate saddr in geneve_xmit_skb() and geneve6_xmit_skb().

v1: https://lore.kernel.org/netdev/[email protected]/

Kuniyuki Iwashima (5):
geneve: Reuse ipv6_addr_type() result in geneve_nl2info().
geneve: Pass struct geneve_dev to geneve_create_sock().
geneve: Pass struct geneve_dev to geneve_find_sock().
geneve: Add dualstack flag to struct geneve_config.
geneve: Introduce IFLA_GENEVE_LOCAL and IFLA_GENEVE_LOCAL6.

 Documentation/netlink/specs/rt-link.yaml |   9 +
 drivers/net/geneve.c                     | 254 +++++++++++++++++++----
 include/uapi/linux/if_link.h             |   2 +
 3 files changed, 219 insertions(+), 46 deletions(-)
Signature · 1 line
2.54.0.1013.g208068f2d8-goog