]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
atm: expose ATM device index in sysfs
authorDan Williams <dcbw@redhat.com>
Fri, 27 May 2011 04:51:54 +0000 (04:51 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 01:34:44 +0000 (10:34 +0900)
commit9854d5778eb446a332fb34ad17ff4d04c6440999
treea84f3709ecf0106928f45b527cbab7ee88968e18
parent213c900d693b87e709e32b046858843fad0332ea
atm: expose ATM device index in sysfs

commit e7a46b4d0839c2a3aa2e0ae0b145f293f6738498 upstream.

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 <dcbw@redhat.com>
Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com>
Tested-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/atm/atm_sysfs.c