]> git.karo-electronics.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 00:32:37 +0000 (09:32 +0900)
commit96f59247b06552ab29000012f0878cbbd522bab2
treec1b160ed90a5172bcfc7791c292740009660a52d
parente753e72e4d6698a629634e66580638e7bd6835ba
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