Re: [PATCH v2] atm: expose ATM device index in sysfs
From: David Miller <davem@davemloft.net>
Date: 2011-05-27 17:10:48
From: David Miller <davem@davemloft.net>
Date: 2011-05-27 17:10:48
From: David Woodhouse <dwmw2@infradead.org> Date: Fri, 27 May 2011 16:05:41 +0100
On Fri, 2011-05-27 at 16:57 +0200, Eric Dumazet wrote:quoted
Le vendredi 27 mai 2011 à 09:51 -0500, Dan Williams a écrit :quoted
It's currently exposed only through /proc which, besides requiring screen-scraping, doesn't allow userspace to distinguish between two identical ATM adapters with different ATM indexes. The ATM device index is required when using PPPoATM on a system with multiple ATM adapters. Signed-off-by: Dan Williams <redacted> ---Reviewed-by: Eric Dumazet <redacted>Tested-by: David Woodhouse <dwmw2@infradead.org> Cc: stable@kernel.org [root@solos atm]# grep ^ /sys/class/atm/*/atmindex /sys/class/atm/solos-pci0/atmindex:0 /sys/class/atm/solos-pci1/atmindex:1
Applied, thanks.