[ovs-dev] [ovs-discuss] ioctls to datapath

Ben Pfaff blp at nicira.com
Sun Dec 12 03:31:02 UTC 2010


On Sat, Dec 11, 2010 at 6:14 PM, Vivek Rai <vivekrai1228 at gmail.com> wrote:
>    Thanks for your reply. I see that the way you do ioctl in dpif interface
> is: ioctl(dpif->fd, ODP_ *, odp_*); I am struggling to find out how to get
> the appropriate file descriptor for datapath. Typically  i can get a file
> descriptor to a device by open(device name, ...). But when I look into
> /dev/net/dp$i i=0,..,256. I do not know what is the appropriate device name.

The logic for figuring that out is also in dpif-linux.c, if you keep reading.




More information about the dev mailing list