[ovs-discuss] A little bit confused about netdev, netdev-vport and vport

Min Chen ustcer.tonychan at gmail.com
Wed Mar 21 07:04:15 PDT 2012


Hi all,

In the PORTING file, it reads:

*lib/netdev-vport.c provides support for "virtual ports" implemented by the
> Open vSwitch datapath module for the Linux kernel
>

netdev-vport.c does not implement its own *recv* function. As in
netdev-provider.h:

* May be null if not needed, such as for a network device that does not
> * implement packet reception through the 'recv' mumber function */
>
void (*recv) (struct netdev *netdev, void *buffer, size_t size);
>

I wonder where else packet reception can be implemented?

And what is the relation between netdev and vport? Is *netdev* used to
abstract Ethernet interfaces, e.g. eth0 on Linux? Is *vport* used to
abstract virtual network kernel devices, e.g. tap0 on Linux?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20120321/6a1e9ee7/attachment.htm>


More information about the discuss mailing list