]> 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>
Thu, 23 Jun 2011 22:28:37 +0000 (15:28 -0700)
commitada6c5d2e4037b86af104904f04bbd5ea67b7fc2
treebb7c7f885b8cce31c7179b43b4357a867a67d8a6
parent2ded2825ecc319281b95aaed836065321c1d9e86
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