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"
13 void vport_gen_rand_ether_addr(u8 *addr)
15 random_ether_addr(addr);
17 /* Set the OUI to the Nicira one. */
22 /* Set the top bit to indicate random address. */
26 unsigned vport_gen_get_dev_flags(const struct vport *vport)
28 return IFF_UP | IFF_RUNNING | IFF_LOWER_UP;
31 int vport_gen_is_running(const struct vport *vport)
36 unsigned char vport_gen_get_operstate(const struct vport *vport)