datapath: Don't use Nicira's OUI for generating mac-address.
[sliver-openvswitch.git] / datapath / vport-generic.c
1 /*
2  * Copyright (c) 2010 Nicira Networks.
3  * Distributed under the terms of the GNU GPL version 2.
4  *
5  * Significant portions of this file may be copied from parts of the Linux
6  * kernel, by Linus Torvalds and others.
7  */
8
9 #include <linux/etherdevice.h>
10
11 #include "vport-generic.h"
12
13 unsigned vport_gen_get_dev_flags(const struct vport *vport)
14 {
15         return IFF_UP | IFF_RUNNING | IFF_LOWER_UP;
16 }
17
18 int vport_gen_is_running(const struct vport *vport)
19 {
20         return 1;
21 }
22
23 unsigned char vport_gen_get_operstate(const struct vport *vport)
24 {
25         return IF_OPER_UP;
26 }