[dpdk-users] Must kni be associated with a dpdk port?

Jason Kwon m43kwon at gmail.com
Thu Mar 31 18:56:18 CEST 2016


No, I don't think it is compulsory--I am using it in this way.  You can
modify the example program to remove the references to the physical PCI
device and have the KNI instance created as a standalone device.

Alternatively, you can use something like librte_pmd_ring, a ring-based
poll-mode driver, to associate KNI with a purely software-based PMD.  In
this case, you are associating KNI with a DPDK port, but no physical
Ethernet device.

Jason


On Wed, Mar 30, 2016 at 11:14 AM, ALeX Wang <ee07b291 at gmail.com> wrote:

> Hi,
>
> I want to use 'rte_kni_alloc()' to create a kernel iface and
> use it to test application rx.  From the api and example in
> 'examples/kni/main.c', i saw the 'conf' argument is assigned
> with pci info of a dpdk port.
>
> Want to ask if this is compulsory...  Must kni always be
> used together with a dpdk port?
>
> Thanks,
>
> --
> Alex Wang,
>


More information about the users mailing list