lkml.org 
[lkml]   [2009]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH v2 08/19] venet: add the ABI definitions for an 802.x packet interface
    Date
    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 */


    \
     
     \ /
      Last update: 2009-04-09 18:47    [W:4.099 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site