atm: expose ATM device index in sysfs
commit9e9c1e7d025df314008fa28581b7ab7f7fcf6f20
authorDan Williams <dcbw@redhat.com>
Fri, 27 May 2011 04:51:54 +0000 (27 04:51 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:24:04 +0000 (23 15:24 -0700)
treec2f062233dc86b187fb8b1cd7b018d00a6ca8c9a
parenta4401a63a8d0594dfbc4d2e7bd2c9779f6b85a45
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