From: Thomas Richter <tmricht@linux.vnet.ibm.com>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, Thomas Richter <tmricht@linux.vnet.ibm.com>
Subject: [PATCH] if_link.h add support for IEEE 802.1 Qbg ratified standard
Date: Wed, 20 Nov 2013 16:26:55 +0100 [thread overview]
Message-ID: <1384961215-29572-1-git-send-email-tmricht@linux.vnet.ibm.com> (raw)
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@linux.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
reply other threads:[~2013-11-20 15:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1384961215-29572-1-git-send-email-tmricht@linux.vnet.ibm.com \
--to=tmricht@linux.vnet.ibm.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).