[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1384961215-29572-1-git-send-email-tmricht@linux.vnet.ibm.com>
Date: Wed, 20 Nov 2013 16:26:55 +0100
From: Thomas Richter <tmricht@...ux.vnet.ibm.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, Thomas Richter <tmricht@...ux.vnet.ibm.com>
Subject: [PATCH] if_link.h add support for IEEE 802.1 Qbg ratified standard
This patch adds 2 netlink message attributes and structures to
support the IEEE 802.1 Qbg ratified standard VDP protocol.
The changes are needed to communication filter information
such as MAC address and VLAN identifier to the hardware for
virtual machine identification.
Signed-off-by: Thomas Richter <tmricht@...ux.vnet.ibm.com>
---
include/uapi/linux/if_link.h | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h
index b78566f..69a2db8 100644
--- a/include/uapi/linux/if_link.h
+++ b/include/uapi/linux/if_link.h
@@ -423,6 +423,8 @@ enum {
IFLA_PORT_HOST_UUID, /* binary UUID */
IFLA_PORT_REQUEST, /* __u8 */
IFLA_PORT_RESPONSE, /* __u16, output only */
+ IFLA_PORT_VSI_TYPE22, /* 802.1Qbg ratified standard VDP */
+ IFLA_PORT_VSI_FILTER, /* 802.1Qbg ratified standard VDP */
__IFLA_PORT_MAX,
};
@@ -463,6 +465,27 @@ struct ifla_port_vsi {
__u8 pad[3];
};
+/*
+ * Filter information data. The array size and structure members carriing
+ * valid data are determined by the members vsi_filter_num and vsi_filter_fmt
+ * structure ifla_port_vsi22 below.
+ */
+struct ifla_port_vsi_filter {
+ __u32 gpid; /* Group Identifier*/
+ __u16 vlanid; /* Vlan identifier and QoS bits */
+ __u8 mac[6]; /* MAC address */
+};
+
+struct ifla_port_vsi22 { /* 802.1 Qbg Ratified standard */
+ __u8 vsi_mgrid[PORT_UUID_MAX]; /* Manager identifier */
+ __u8 vsi_uuid[PORT_UUID_MAX]; /* VSI identifier */
+ __u8 vsi_uuidfmt; /* Format of UUID string */
+ __u8 vsi_type_id[3];
+ __u8 vsi_type_version;
+ __u8 vsi_hints; /* Hint bits */
+ __u8 vsi_filter_fmt; /* Filter information format */
+ __u16 vsi_filter_num; /* # of filter data entries */
+};
/* IPoIB section */
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists