Skip to content

Per-net and on-demand link indices (and related) v3

Pavel Emelyanov netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Changes since v2 from the cover letter

* The pointer hash mix routine is rewritten
* Put ifindex on struct net in a better place
* Fixed compatibility on veth peer device ifindex configuration

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: Dont use ifindices in hash fnsinclude/linux/hash.h include/net/arp.h include/net/ndisc.h+14 -20 replies
2/5net: Allow to create links with given ifindexnet/core/dev.c net/core/rtnetlink.c+13 -60 replies
3/5veth: Allow to create peer link with given ifindexdrivers/net/veth.c+3 -00 replies
4/5net: Make ifindex generation per-net namespaceinclude/net/net_namespace.h net/core/dev.c+3 -20 replies
5/5net: Loopback ifindex is constant nowdrivers/net/loopback.c include/net/net_namespace.h net/decnet/dn_route.c +5 more+18 -100 replies

Reviews trailers per patch

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

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

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

Read the v1 thread

Cover letter [PATCH net-next 0/5] Per-net and on-demand link indices (and related) v3

Hi!

This set tries to summarize the recent discussion of making ifindices friendly to checkpoint-restore and consists of:

1. Prepare hash function to non-unique ifindices
2. Allow for specifying the desired ifindex on net link creation
3. Make ifindex generation per-net
4. Simplify loopback device ifindex access

Changes since v2:

* The pointer hash mix routine is rewritten
* Put ifindex on struct net in a better place
* Fixed compatibility on veth peer device ifindex configuration

Changes since v1:

* Fixed a stupid mistake with a pointer bits shift
* Turned the netdev_hash_mix routine into the generic ptr_hash_mix one
* Added a comment describing why loopback index is always 1 after the patch

Thanks,
Pavel