netdev-linux: Use underlying tap device on netdev_linux_listen().
authorJustin Pettit <jpettit@nicira.com>
Thu, 6 Dec 2012 01:02:48 +0000 (17:02 -0800)
committerJustin Pettit <jpettit@nicira.com>
Fri, 7 Dec 2012 23:04:36 +0000 (15:04 -0800)
commit33d82a56df179219ccc3581437ca6e0c2d6b42ee
tree48a7c8b5e5ca06ee06fd965585af5e8a6b66e0a9
parent2520f4528742decf78a8b375f5389b50977f5e4b
netdev-linux: Use underlying tap device on netdev_linux_listen().

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.

Thanks to Ben Pfaff for helping debug the issue.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Reported-by: Simon Horman <horms@verge.net.au>
Tested-by: Simon Horman <horms@verge.net.au>
lib/netdev-linux.c