Pavel Emelyanov
aa79e66eee
net: Make ifindex generation per-net namespace
...
Strictly speaking this is only _really_ required for checkpoint-restore to
make loopback device always have the same index.
This change appears to be safe wrt "ifindex should be unique per-system"
concept, as all the ifindex usage is either already made per net namespace
of is explicitly limited with init_net only.
There are two cool side effects of this. The first one -- ifindices of
devices in container are always small, regardless of how many containers
we've started (and re-started) so far. The second one is -- we can speed
up the loopback ifidex access as shown in the next patch.
v2: Place ifindex right after dev_base_seq : avoid two holes and use the
same cache line, dirtied in list_netdevice()/unlist_netdevice()
Signed-off-by: Pavel Emelyanov <xemul@parallels.com >
Acked-by: Eric Dumazet <edumazet@google.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-08-09 16:18:07 -07:00
..
2012-01-05 10:51:44 -06:00
2012-07-15 12:18:29 -03:00
2012-06-25 16:44:12 -07:00
2012-03-07 22:52:24 -08:00
2012-07-10 23:56:33 -07:00
2012-07-30 14:53:22 -07:00
2012-07-09 16:42:12 -04:00
2012-06-17 16:29:38 -07:00
2012-07-22 12:13:46 -07:00
2012-07-18 11:28:46 -07:00
2012-06-08 14:27:23 -07:00
2012-08-09 16:18:06 -07:00
2012-04-23 22:14:47 -04:00
2012-08-02 15:30:49 +02:00
2008-11-19 15:44:53 -08:00
2012-06-01 14:18:29 -04:00
2012-05-16 15:30:26 -04:00
2012-04-15 12:44:40 -04:00
2005-08-29 15:32:25 -07:00
2012-04-05 05:08:04 -04:00
2010-11-08 13:50:08 -08:00
2012-04-15 12:44:40 -04:00
2012-07-05 01:12:14 -07:00
2012-04-15 12:44:40 -04:00
2008-01-28 14:55:58 -08:00
2012-07-19 10:43:03 -07:00
2012-08-07 16:24:55 -07:00
2012-06-29 01:36:36 -07:00
2012-07-20 13:36:54 -07:00
2011-05-12 17:46:56 -04:00
2011-03-31 11:26:23 -03:00
2012-06-28 17:56:43 -07:00
2012-04-15 12:44:40 -04:00
2012-05-16 15:16:56 -04:00
2012-05-15 20:14:35 -04:00
2012-07-16 03:44:56 -07:00
2012-07-26 15:50:39 -07:00
2012-07-19 11:02:03 -07:00
2012-07-20 13:36:54 -07:00
2012-05-18 01:40:27 -04:00
2012-06-19 21:22:05 -07:00
2012-07-31 14:41:38 -07:00
2011-12-14 13:34:55 -05:00
2012-07-10 22:40:14 -07:00
2012-07-05 02:41:58 -07:00
2012-07-18 08:59:58 -07:00
2012-06-29 00:52:32 -07:00
2012-07-31 15:02:02 -07:00
2012-07-17 12:00:46 +02:00
2012-07-19 10:35:30 -07:00
2010-02-16 23:05:38 -08:00
2008-06-11 21:00:38 -07:00
2012-04-14 14:47:05 -04:00
2012-07-18 11:28:46 -07:00
2011-03-31 11:26:23 -03:00
2012-05-17 18:45:20 -04:00
2012-04-15 12:44:40 -04:00
2012-05-15 20:14:35 -04:00
2005-04-16 15:20:36 -07:00
2012-07-12 12:10:46 +02:00
2012-06-26 21:06:11 -07:00
2010-06-03 03:21:52 -07:00
2010-04-23 13:35:55 +09:00
2012-08-09 16:18:06 -07:00
2012-08-07 16:24:55 -07:00
2012-08-09 16:18:07 -07:00
2009-01-06 11:38:15 -07:00
2012-07-05 02:21:55 -07:00
2011-08-01 17:58:33 -07:00
2012-08-03 20:40:11 -07:00
2012-07-22 12:44:01 -07:00
2006-09-22 14:55:04 -07:00
2012-04-15 12:44:40 -04:00
2012-07-26 15:50:39 -07:00
2009-03-21 19:06:50 -07:00
2010-09-08 13:42:22 -07:00
2012-05-19 01:08:16 -04:00
2012-04-16 23:53:11 -04:00
2012-07-17 12:16:39 +02:00
2011-03-27 17:59:04 -07:00
2012-07-31 15:06:50 -07:00
2012-07-20 11:06:59 -07:00
2012-07-20 11:07:00 -07:00
2012-07-22 23:58:00 +04:00
2011-10-21 05:22:42 -04:00
2012-08-06 13:40:47 -07:00
2012-08-02 00:19:17 -07:00
2012-04-10 10:04:07 -07:00
2012-07-20 10:59:41 -07:00
2012-06-09 14:56:12 -07:00
2012-04-28 22:21:51 -04:00
2012-03-12 17:05:21 -07:00
2012-04-15 12:44:40 -04:00
2012-05-16 15:17:08 -04:00
2012-04-15 12:44:40 -04:00
2012-08-02 00:19:17 -07:00