2 * Copyright (c) 2010 Nicira Networks.
3 * Distributed under the terms of the GNU GPL version 2.
5 * Significant portions of this file may be copied from parts of the Linux
6 * kernel, by Linus Torvalds and others.
9 #include <linux/etherdevice.h>
11 #include "vport-generic.h"
14 vport_gen_rand_ether_addr(u8 *addr)
16 random_ether_addr(addr);
18 /* Set the OUI to the Nicira one. */
23 /* Set the top bit to indicate random address. */
28 vport_gen_get_dev_flags(const struct vport *vport)
30 return IFF_UP | IFF_RUNNING | IFF_LOWER_UP;
34 vport_gen_is_running(const struct vport *vport)
40 vport_gen_get_operstate(const struct vport *vport)