Skip to content

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

Pavel Emelyanov netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Changes since v1 from the cover letter

* 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

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6hash: Introduce ptr_hash_mix routineinclude/linux/hash.h include/net/netns/hash.h+12 -76 replies
2/6net: Dont use ifindices in hash fnsinclude/net/arp.h include/net/ndisc.h+4 -20 replies
3/6net: Allow to create links with given ifindexnet/core/dev.c net/core/rtnetlink.c+13 -63 replies
4/6veth: Allow to create peer link with given ifindexdrivers/net/veth.c+3 -06 replies
5/6net: Make ifindex generation per-net namespaceinclude/net/net_namespace.h net/core/dev.c+3 -24 replies
6/6net: Loopback ifindex is constant nowdrivers/net/loopback.c include/net/net_namespace.h net/decnet/dn_route.c +5 more+18 -102 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchEric Dumazet
1/6
2/6
3/6A-b
4/6A-b
5/6A-b
6/6A-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/6] Per-net and on-demand link indices (and related) v2

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 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