Thread (2 messages) 2 messages, 1 author, 2021-06-03

Re: [dpdk-dev] Can we run KNI under a container /Kubernetes POD

From: chetan bhasin <hidden>
Date: 2021-06-03 05:50:23

Hi Dpdk Geeks,

I have tried bringing the dpdk KNI app on POD and facing the below issue .
Please suggest

EAL:   probe driver: 8086:154c net_i40e_vf

EAL: PCI device 0000:af:0c.2 on NUMA socket 1

EAL:   probe driver: 8086:154c net_i40e_vf

EAL: PCI device 0000:af:0c.3 on NUMA socket 1

EAL:   probe driver: 8086:154c net_i40e_vf

EAL: PCI device 0000:af:0c.4 on NUMA socket 1

EAL:   probe driver: 8086:154c net_i40e_vf

EAL: PCI device 0000:af:0c.5 on NUMA socket 1

EAL:   probe driver: 8086:154c net_i40e_vf

EAL: PCI device 0000:af:0c.6 on NUMA socket 1

EAL:   probe driver: 8086:154c net_i40e_vf

EAL: PCI device 0000:af:0c.7 on NUMA socket 1

EAL:   probe driver: 8086:154c net_i40e_vf

APP: Initialising port 0 ...

KNI: pci: 87:0c:07       8086:154c

*EAL: Error - exiting with code: 1*

*  Cause: Fail to create kni for port: 0*



*Command: *

*./kni -c 0x2000 -n 4 -- -p 0x1 -P --config="(0,13,13,13)"*



* Thanks,*

*Chetan*

On Fri, May 28, 2021 at 11:59 AM chetan bhasin [off-list ref]
wrote:
Hello Everyone,

We can run dpdk app with KNI on container with below options -
* --network host --privileged* -v
/sys/bus/pci/drivers:/sys/bus/pci/drivers -v
/sys/kernel/mm/hugepages:/sys/kernel/mm/hugepages -v
/sys/devices/system/node:/sys/devices/system/node -v /dev:/dev

Is there any way we could run DPDK KNI without --network-host in
privileged mode ?

Please suggest

Thanks,
Chetan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help