]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipoib: rfe- enable pkey and device name decoupling
authorMukesh Kacker <mukesh.kacker@oracle.com>
Thu, 22 Jan 2015 19:14:02 +0000 (11:14 -0800)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Wed, 8 Jul 2015 01:10:54 +0000 (18:10 -0700)
commitf70a5ac6ed7eb212ec282fa71f2993c0e003628d
treef779d68d62d9dec1b579105540bd8d2eb9d31824
parent1fdb2c6f388366c1fc2c0d8b7a9e5962da61f7f1
ipoib: rfe- enable pkey and device name decoupling

The sysfs "create_child" interface creates
pkey based child interface but derives the
name from parent device name and pkey value.
This makes administration difficult where pkey
values can change but policies encoded with
device names do not.

We add ability to create a child interface with
a user specified name and a specified pkey
with a new sysfs "create_named_child" interface
(and also add a corresponding "delete_named_child"
interface).

We also add a new module api interface to query
pkey from a netdevice so any kernel users of
pkey based child interfaces can query it - since
with device name decoupled from pkey, it can no
longer be deduced from parsing the device name
by other kernel users.

Orabug: 19064704

Ported from UEK2 commits
 a101f6037e882b1c12143416d48345fe7ea62979 and
 916eb26c32082e241c22fcf8064959d697eabe2b

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Chien-Hua Yen <chien.yen@oracle.com>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
Documentation/infiniband/ipoib.txt
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c
include/net/ipoib/if_ipoib.h [new file with mode: 0644]