netdev-linux: Give tap FD to first opener.
authorJesse Gross <jesse@nicira.com>
Tue, 1 Jun 2010 22:27:26 +0000 (15:27 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 2 Jun 2010 00:27:45 +0000 (17:27 -0700)
commit61b999dd6fa3a8942b5002f9392a0068324a80b6
tree899eb0ab945a81cef247af2e8373d518e949a0ac
parent92df599cb2bc5b04a5c9da3e7002f4c729ba480c
netdev-linux: Give tap FD to first opener.

Tap devices can have two FDs that allow transmit and receive from
different perspectives.  We previously would always share one of
the FDs among all openers.  However, this is confusing to some
users (primarily the DHCP client) which expect tap devices to behave
like any other device.  Now we give the tap FD to the first opener,
which knows that it has opened a tap device, and a normal system FD
to everyone else for consistency.
lib/netdev-linux.c