]> git.openfabrics.org - ~shefty/ibacm.git/commit
ibacm: use sysfs (in acm_if_is_ib) rather than ioctl(... SIOCGIFHWADDR ...) to read...
authorIra Weiny <ira.weiny@intel.com>
Tue, 25 Mar 2014 01:30:00 +0000 (21:30 -0400)
committerSean Hefty <sean.hefty@intel.com>
Tue, 8 Apr 2014 21:08:40 +0000 (14:08 -0700)
commit05b2a020ec63dd7079731b0b81386ee338fdb9a8
tree702e5db942aa3f2b56413a40d4e439791bf94a98
parent55058deb9d38e07ddf9137759ed190bbdf41f9e9
ibacm: use sysfs (in acm_if_is_ib) rather than ioctl(... SIOCGIFHWADDR ...) to read interface type

Getting an interface type from sysfs is easier than using an ioctl when an
interface name is readily available (as is the case with netlink.)

In preparation for netlink support create a function which uses sysfs and use
it instead of ioctls.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
linux/acme_linux.c