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>
This commit is contained in:
@@ -1147,6 +1147,9 @@ struct net_device_ops {
|
||||
struct nlattr *port[]);
|
||||
int (*ndo_get_vf_port)(struct net_device *dev,
|
||||
int vf, struct sk_buff *skb);
|
||||
int (*ndo_set_vf_guid)(struct net_device *dev,
|
||||
int vf, u64 guid,
|
||||
int guid_type);
|
||||
int (*ndo_set_vf_rss_query_en)(
|
||||
struct net_device *dev,
|
||||
int vf, bool setting);
|
||||
|
Reference in New Issue
Block a user