datapath: Set Nicira random address in the datapath.
authorJesse Gross <jesse@nicira.com>
Mon, 8 Feb 2010 20:48:54 +0000 (15:48 -0500)
committerJesse Gross <jesse@nicira.com>
Mon, 8 Feb 2010 20:48:54 +0000 (15:48 -0500)
OVS now sets the Nicira OUI plus the top bit on packets that it
generates to indicate a random address.  This makes the datapath
do the same thing.

datapath/dp_dev.c

index 5b434c1..2bbd6fe 100644 (file)
@@ -214,8 +214,8 @@ do_setup(struct net_device *netdev)
        netdev->dev_addr[1] = 0x23;
        netdev->dev_addr[2] = 0x20;
 
-       /* Set the top bits to indicate random Nicira address. */
-       netdev->dev_addr[3] |= 0xc0;
+       /* Set the top bit to indicate random Nicira address. */
+       netdev->dev_addr[3] |= 0x80;
 }
 
 /* Create a datapath device associated with 'dp'.  If 'dp_name' is null,