Hi Alex, I previously ran into the same issue. I just used the PCI device information from the primary slave of the bonded interface:
https://github.com/AltraMayor/gatekeeper/blob/master/cps/main.c#L545 Hope that helps, Cody On Thu, Jun 22, 2017 at 5:06 AM, Alex Kiselev <[email protected]> wrote: > Hello. > > Is it possible to create a KNI interface at a bonding port? > > My code that works perfectly fine with usual dpdk ports fails > when I try to use it with bonding ports. > > rte_eth_dev_info_get(port_id, &dev_info); > conf.addr = dev_info.pci_dev->addr; > ... > return rte_kni_alloc(pktmbuf_pool, &conf, &ops); > > > The code fails because pci_dev member of variable dev_info is NULL. > Is there any workarounds for this problem? > > Thanks. > > -- > Alexander Kiselev >
