[RFC PATCH v2 08/19] venet: add the ABI definitions for an 802.x packet interface

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gregory Haskins
Date: Thursday, April 9, 2009 - 9:31 am

Signed-off-by: Gregory Haskins <ghaskins@novell.com>
---

 include/linux/venet.h |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 47 insertions(+), 0 deletions(-)
 create mode 100644 include/linux/venet.h

diff --git a/include/linux/venet.h b/include/linux/venet.h
new file mode 100644
index 0000000..ef6b199
--- /dev/null
+++ b/include/linux/venet.h
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2008 Novell.  All Rights Reserved.
+ *
+ * Virtual-Ethernet adapter
+ *
+ * Author:
+ *      Gregory Haskins <ghaskins@novell.com>
+ *
+ * This file is free software; you can redistribute it and/or modify
+ * it under the terms of version 2 of the GNU General Public License
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef _LINUX_VENET_H
+#define _LINUX_VENET_H
+
+#define VENET_VERSION 1
+
+#define VENET_TYPE "virtual-ethernet"
+
+#define VENET_QUEUE_RX 0
+#define VENET_QUEUE_TX 1
+
+struct venet_capabilities {
+	__u32 gid;
+	__u32 bits;
+};
+
+/* CAPABILITIES-GROUP 0 */
+/* #define VENET_CAP_FOO    0   (No capabilities defined yet, for now) */
+
+#define VENET_FUNC_LINKUP   0
+#define VENET_FUNC_LINKDOWN 1
+#define VENET_FUNC_MACQUERY 2
+#define VENET_FUNC_NEGCAP   3 /* negotiate capabilities */
+#define VENET_FUNC_FLUSHRX  4
+
+#endif /* _LINUX_VENET_H */

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH v2 00/19] virtual-bus, Gregory Haskins, (Thu Apr 9, 9:30 am)
[RFC PATCH v2 01/19] shm-signal: shared-memory signals, Gregory Haskins, (Thu Apr 9, 9:30 am)
[RFC PATCH v2 02/19] vbus: add virtual-bus definitions, Gregory Haskins, (Thu Apr 9, 9:30 am)
[RFC PATCH v2 04/19] vbus: add bus-registration notifiers, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 07/19] ioq: add vbus helpers, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 08/19] venet: add the ABI definitions for an ..., Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 09/19] net: Add vbus_enet driver, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 11/19] venet: add scatter-gather support, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 12/19] venettap: add scatter-gather support, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 14/19] kvm: add a reset capability, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 15/19] kvm: add dynamic IRQ support, Gregory Haskins, (Thu Apr 9, 9:32 am)
[RFC PATCH v2 16/19] kvm: Add VBUS support to the host, Gregory Haskins, (Thu Apr 9, 9:32 am)
[RFC PATCH v2 17/19] kvm: Add guest-side support for VBUS, Gregory Haskins, (Thu Apr 9, 9:32 am)
[RFC PATCH v2 18/19] vbus: add a userspace connector, Gregory Haskins, (Thu Apr 9, 9:32 am)
[RFC PATCH v2 19/19] virtio: add a vbus transport, Gregory Haskins, (Thu Apr 9, 9:32 am)
Re: [RFC PATCH v2 09/19] net: Add vbus_enet driver, Stephen Hemminger, (Thu Apr 9, 9:37 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Gregory Haskins, (Thu Apr 9, 9:48 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Avi Kivity, (Sat Apr 11, 9:45 am)
Re: [RFC PATCH v2 14/19] kvm: add a reset capability, Avi Kivity, (Sat Apr 11, 9:56 am)
Re: [RFC PATCH v2 15/19] kvm: add dynamic IRQ support, Avi Kivity, (Sat Apr 11, 10:01 am)
Re: [RFC PATCH v2 15/19] kvm: add dynamic IRQ support, Gregory Haskins, (Mon Apr 13, 10:44 am)
Re: [RFC PATCH v2 03/19] vbus: add connection-client helpe ..., Michael S. Tsirkin, (Thu Jun 4, 11:06 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Gregory Haskins, (Thu Jun 4, 11:49 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Rusty Russell, (Thu Jun 4, 9:55 pm)
Re: [RFC PATCH v2 00/19] virtual-bus, Paul E. McKenney, (Thu Jun 4, 10:30 pm)
Re: [RFC PATCH v2 00/19] virtual-bus, Gregory Haskins, (Fri Jun 5, 4:56 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Avi Kivity, (Fri Jun 5, 5:53 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Rusty Russell, (Fri Jun 5, 7:35 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Gregory Haskins, (Fri Jun 5, 7:44 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Rusty Russell, (Fri Jun 5, 7:55 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Paul E. McKenney, (Fri Jun 5, 9:25 am)
Re: [RFC PATCH v2 19/19] virtio: add a vbus transport, Anthony Liguori, (Sun Aug 9, 9:40 am)
Re: [RFC PATCH v2 19/19] virtio: add a vbus transport, Gregory Haskins, (Mon Aug 10, 8:40 am)