netdev-bsd: Use underlying tap device on netdev_bsd_listen().
authorEd Maste <emaste@freebsd.org>
Fri, 7 Dec 2012 16:28:26 +0000 (11:28 -0500)
committerBen Pfaff <blp@nicira.com>
Sat, 8 Dec 2012 18:25:24 +0000 (10:25 -0800)
commit373be31fa1c25f0ed52f18a2ec2536591467e1a9
tree5d49dba32243ad350af1ed0dabe98799dca55893
parent90d721f0559c9d7df3a164728e88336f108e67b0
netdev-bsd: Use underlying tap device on netdev_bsd_listen().

This is a trivial port to netdev-bsd of Justin Pettit's netdev-linux
commit 33d82a56d (netdev-linux: Use underlying tap device on
netdev_linux_listen().), which had the commit message:

  Commit acf608 (ofproto-dpif: Use a single underlying datapath across
  multiple bridges.) broke connectivity to userspace datapath devices.  The
  code assumed the first caller to open a tap device with
  netdev_linux_open() wanted to write to it.  This commit moves that logic
  to when netdev_linux_listen() is called.

This fixes the userspace datapath on FreeBSD.

Signed-off-by: Ed Maste <emaste@freebsd.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-bsd.c