]> 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)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:54:53 +0000 (13:54 -0700)
commit46fcbe707a5c02e357434409635c759e43d2a665
treeea0fe14efca39e0114ef2cd151c53b57a5331597
parent1e293bba2a05ab9b38d696c467de02b3b2b45331
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
net/atm/atm_sysfs.c