[ovs-dev] switch local port

Ben Pfaff blp at nicira.com
Thu Feb 24 17:29:20 UTC 2011

On Thu, Feb 24, 2011 at 04:04:43PM +0100, Gaetano Catalli wrote:
> >> Why this tap device could be opened more than one time?
> >
> > Any network device can be opened multiple times with netdev_open().
> >
> I apologise for bothering you with all these questions about the same topic.
> Can you explain me why there is difference between the first user and
> the following users?

The first user is the one that causes the tap device to be created.  It
is normally do_add_port() in lib/dpif-netdev.c, for a tap device.  This
is the client that wants to use the device to send and receive packets.

> I'm working at netdev level, so I can't see this difference, which is
> probably observable at an higher level.

OK.  I hope that my explanation helps.

More information about the dev mailing list