[dpdk-users] KNI interfaces at bonding ports

Alex Kiselev kiselev99 at gmail.com
Thu Jun 22 22:25:49 CEST 2017


Hi, Cody. Thank you. It helped.
rte_eth_bond_primary_get() function is exactly what I needed.


2017-06-22 19:08 GMT+03:00 Cody Doucette <doucette at bu.edu>:
> 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 <kiselev99 at gmail.com> 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
>
>



-- 
--
Kiselev Alexander


More information about the users mailing list