OSDN Git Service

net/core: Add support for configuring VF GUIDs
authorEli Cohen <eli@mellanox.com>
Fri, 11 Mar 2016 20:58:34 +0000 (22:58 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 21 Mar 2016 20:34:06 +0000 (16:34 -0400)
commitcc8e27cc97318471b7e707932d5b93b0d5f70830
tree7334c9bc203d3a49f9ddfec39afaa5890321d845
parentfb532d6a79b96a4c8f678024d7ed3549ff0ca916
net/core: Add support for configuring VF GUIDs

Add two new NLAs to support configuration of Infiniband node or port
GUIDs. New applications can choose to use this interface to configure
GUIDs with iproute2 with commands such as:

ip link set dev ib0 vf 0 node_guid 00:02:c9:03:00:21:6e:70
ip link set dev ib0 vf 0 port_guid 00:02:c9:03:00:21:6e:78

A new ndo, ndo_sef_vf_guid is introduced to notify the net device of the
request to change the GUID.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
include/linux/netdevice.h
include/uapi/linux/if_link.h
net/core/rtnetlink.c