netdev-linux: "Down" tap devices before setting hw addr.
authorJustin Pettit <jpettit@nicira.com>
Thu, 15 Nov 2012 22:27:28 +0000 (14:27 -0800)
committerJustin Pettit <jpettit@nicira.com>
Fri, 16 Nov 2012 20:35:55 +0000 (12:35 -0800)
commit7eb1bd81120806b4189e860b2a6468925d8e7bba
tree3dce20dda1a891236016ddfcae0f5997531261dd
parentbef071a5fdf8e2dd87677b04b3cf7a8f5094edcb
netdev-linux: "Down" tap devices before setting hw addr.

On Linux, it is not possible to set the mac address on "up" tap
interfaces.  This commit temporarily "down"s the interface so the
address can be set for the netdev_linux_set_etheraddr() call.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
lib/netdev-linux.c