summaryrefslogtreecommitdiff
path: root/datapath/vport-internal_dev.c
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2010-05-10 17:40:22 -0700
committerJesse Gross <jesse@nicira.com>2010-05-18 12:55:42 -0700
commitb19e8815add8374089c8a90fd276ba65c151416a (patch)
tree1ef19df29121a142a45f56f1f160562ddf856b0c /datapath/vport-internal_dev.c
parent488a9d1703a182529d53d80c7ab5a1b608a3600a (diff)
downloadopenvswitch-b19e8815add8374089c8a90fd276ba65c151416a.tar.gz
vport: Extract common functions for virtual devices.
Pull some generic implementations of vport functions out of the GRE vport so they can be used by others. Also move the code to set the MTUs of internal devices to the minimum of attached devices to the generic vport_set_mtu layer.
Diffstat (limited to 'datapath/vport-internal_dev.c')
-rw-r--r--datapath/vport-internal_dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c
index 88d3444cb..d8e57fef8 100644
--- a/datapath/vport-internal_dev.c
+++ b/datapath/vport-internal_dev.c
@@ -16,6 +16,7 @@
#include "datapath.h"
#include "openvswitch/internal_dev.h"
+#include "vport-generic.h"
#include "vport-internal_dev.h"
#include "vport-netdev.h"
@@ -233,7 +234,7 @@ do_setup(struct net_device *netdev)
netdev->features = NETIF_F_LLTX | NETIF_F_SG | NETIF_F_HIGHDMA
| NETIF_F_HW_CSUM | NETIF_F_TSO;
- vport_gen_ether_addr(netdev->dev_addr);
+ vport_gen_rand_ether_addr(netdev->dev_addr);
}
static struct vport *