Greg KH wrote:Here is the output from an ls -l of /sys/class/net. I tryed with different configurations and checked the renamed network devices are propagated to the sysfs. 1) CONFIG_SYSFS_DEPRECATED && CONFIG_SYS && CONFIG_NET_NS ========================================================= Outside a namespace: -------------------- qemu:~> ip l 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff 3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop link/ether 1e:43:9e:1f:1f:55 brd ff:ff:ff:ff:ff:ff 4: br0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff 16: veth1: <BROADCAST,MULTICAST,PROMISC> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 8e:94:e6:72:63:cf brd ff:ff:ff:ff:ff:ff qemu:~/lxc> ll /sys/class/net/ total 0 drwxr-xr-x 5 root root 0 2008-05-07 15:24 br0 drwxr-xr-x 3 root root 0 2008-05-07 13:16 dummy0 drwxr-xr-x 4 root root 0 2008-05-07 15:24 eth0 drwxr-xr-x 3 root root 0 2008-05-07 13:16 lo drwxr-xr-x 4 root root 0 2008-05-07 15:26 veth1 Inside the namespace: ---------------------- qemu:~> ip l 14: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 15: veth2: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 46:85:e5:76:90:05 brd ff:ff:ff:ff:ff:ff virtnode:~lxc # ll /sys/class/net/ total 0 drwxr-xr-x 3 root root 0 May 7 15:28 lo drwxr-xr-x 3 root root 0 May 7 15:26 veth2 2) CONFIG_SYSFS && CONFIG_NET_NS ================================ Outside the namespace: ---------------------- qemu:~> ip l 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff 3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop link/ether 72:16:3d:88:11:70 brd ff:ff:ff:ff:ff:ff 4: br0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff 13: veth1: <BROADCAST,MULTICAST,PROMISC> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether aa:6f:e8:dd:b8:ba brd ff:ff:ff:ff:ff:ff * Content of /sys/class/net: qemu:~/lxc> ll /sys/class/net/ total 0 lrwxrwxrwx 1 root root 0 2008-05-07 14:31 br0 -> ../../devices/virtual/net/br0 lrwxrwxrwx 1 root root 0 2008-05-07 14:28 dummy0 -> ../../devices/virtual/net/dummy0 lrwxrwxrwx 1 root root 0 2008-05-07 14:28 eth0 -> ../../devices/pci0000:00/0000:00:03.0/net/eth0 lrwxrwxrwx 1 root root 0 2008-05-07 14:28 lo -> ../../devices/virtual/net/lo lrwxrwxrwx 1 root root 0 2008-05-07 14:35 veth1 -> ../../devices/virtual/net/veth1 Inside the namespace: ---------------------- qemu:~> ip l 11: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 12: veth2: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether ee:c5:a3:7c:58:bd brd ff:ff:ff:ff:ff:ff virtnode:~/lxc # ll /sys/class/net/ total 0 lrwxrwxrwx 1 root root 0 May 7 14:40 lo -> ../../devices/virtual/net/lo lrwxrwxrwx 1 root root 0 May 7 14:40 veth2 -> ../../devices/virtual/net/veth2 3) CONFIG_SYSFS =============== qemu:~> ip l 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff 3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop link/ether 6e:3a:5f:2f:fa:cb brd ff:ff:ff:ff:ff:ff 4: br0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff qemu:~/lxc> ll /sys/class/net/ total 0 lrwxrwxrwx 1 root root 0 2008-05-07 15:01 br0 -> ../../devices/virtual/net/br0 lrwxrwxrwx 1 root root 0 2008-05-07 14:59 dummy0 -> ../../devices/virtual/net/dummy0 lrwxrwxrwx 1 root root 0 2008-05-07 14:59 eth0 -> ../../devices/pci0000:00/0000:00:03.0/net/eth0 lrwxrwxrwx 1 root root 0 2008-05-07 14:59 lo -> ../../devices/virtual/net/lo 4) CONFIG_SYSFS_DEPRECATED && CONFIG_SYSFS ========================================== qemu:~> ip l 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff 3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop link/ether 16:85:f0:a8:34:44 brd ff:ff:ff:ff:ff:ff 4: br0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff qemu:~> ll /sys/class/net/ total 0 drwxr-xr-x 5 root root 0 2008-05-07 15:07 br0 drwxr-xr-x 3 root root 0 2008-05-07 15:06 dummy0 drwxr-xr-x 4 root root 0 2008-05-07 15:07 eth0 drwxr-xr-x 3 root root 0 2008-05-07 15:06 lo --
| Pardo | Re: pthread_create() slow for many threads; also time to revisit 64b context switc... |
| Paul Jackson | Inquiry: Should we remove "isolcpus= kernel boot option? (may have realtime uses) |
| Srivatsa Vaddagiri | Re: [PATCH, RFC] reimplement flush_workqueue() |
| Peter Zijlstra | Re: Btrfs v0.16 released |
git: | |
| Giuseppe Bilotta | Re: gitweb and remote branches |
| Miklos Vajna | [rfc] git submodules howto |
| JD Guzman | C# Git Implementation |
| Junio C Hamano | Re: [PATCH] fix parallel make problem |
| Richard Stallman | Real men don't attack straw men |
| Steve B | SSH brute force attacks no longer being caught by PF rule |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Marius ROMAN | 1440x900 resolution problem |
| Tomasz Grobelny | [PATCH 0/5] [DCCP]: Queuing policies |
| Dushan Tcholich | Re: ksoftirqd high cpu load on kernels 2.6.24 to 2.6.27-rc1-mm1 |
| John Heffner | Re: A Linux TCP SACK Question |
| Denys Fedoryshchenko | Re: Could you make vconfig less stupid? |
