atm: expose ATM device index in sysfs
authorDan Williams <dcbw@redhat.com>
Fri, 27 May 2011 04:51:54 +0000 (04:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 May 2011 17:07:21 +0000 (13:07 -0400)
commite7a46b4d0839c2a3aa2e0ae0b145f293f6738498
treece38143b070fb4f5ed96e93bd5a8e3324016653e
parent58bf2dbccc5aca12df77e2328f478e239a68bdd5
atm: expose ATM device index in sysfs

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>
Cc: stable@kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/atm_sysfs.c