OSDN Git Service

IB/ipoib: Log sysfs 'dev_id' accesses from userspace
authorArseny Maslennikov <ar@cs.msu.ru>
Thu, 6 Sep 2018 14:51:12 +0000 (17:51 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 13 Sep 2018 15:47:52 +0000 (11:47 -0400)
commitf6350da41dc728da5a27044bde6f770525ba97d6
treef610ce47b361b1e7bf6b695c81d2242b8e1fca6e
parent9b8b2a323008aedd39a8debb861b825707f01420
IB/ipoib: Log sysfs 'dev_id' accesses from userspace

Some tools may currently be using only the deprecated attribute;
let's print an elaborate and clear deprecation notice to kmsg.

To do that, we have to replace the whole sysfs file, since we inherit
the original one from netdev.

Signed-off-by: Arseny Maslennikov <ar@cs.msu.ru>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c