From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Emelyanov Subject: [PATCH net-next 0/5] Per-net and on-demand link indices (and related) v3 Date: Thu, 09 Aug 2012 11:52:00 +0400 Message-ID: <50236C20.4050108@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: David Miller , Eric Dumazet , "Eric W. Biederman" , Linux Netdev List , Ben Hutchings Return-path: Received: from mailhub.sw.ru ([195.214.232.25]:1069 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756072Ab2HIHwp (ORCPT ); Thu, 9 Aug 2012 03:52:45 -0400 Sender: netdev-owner@vger.kernel.org List-ID: 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