|
|
Re: [PATCH 5/5] net: Loopback ifindex is constant now |
On Mon, 2012-08-06 at 14:32 +0400, Pavel Emelyanov wrote: > As pointed out, there are places, that access net->loopback_dev->ifindex > and after ifindex generation is made per-net this value becomes constant > equals 1. So go ahead and introduce the LOOPBACK_IFINDEX constant and use > it where appropriate. > > Signed-off-by: Pavel Emelyanov <xemul@xxxxxxxxxxxxx> What guarantee do we have that loopback is the first device per net ? You should add this to the changelog because its not that obvious. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Kernel Discussion] [Ethernet Bridging] [Linux Wireless Networking] [Linux Bluetooth Networking] [Linux Networking Users] [VLAN] [Git] [IETF Annouce] [Linux Assembly] [Security] [Bugtraq] [Photo] [Singles Social Networking] [Yosemite Information] [MIPS Linux] [ARM Linux Kernel] [ARM Linux] [Linux Virtualization] [Linux Security] [Linux IDE] [Linux RAID] [Linux SCSI] [Free Dating]
![]() |
![]() |