DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Can we run KNI under a container
@ 2021-05-28  6:29 chetan bhasin
  2021-06-03  5:50 ` [dpdk-dev] Can we run KNI under a container /Kubernetes POD chetan bhasin
  0 siblings, 1 reply; 2+ messages in thread
From: chetan bhasin @ 2021-05-28  6:29 UTC (permalink / raw)
  To: dev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] Can we run KNI under a container /Kubernetes POD
  2021-05-28  6:29 [dpdk-dev] Can we run KNI under a container chetan bhasin
@ 2021-06-03  5:50 ` chetan bhasin
  0 siblings, 0 replies; 2+ messages in thread
From: chetan bhasin @ 2021-06-03  5:50 UTC (permalink / raw)
  To: dev

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 <chetan.bhasin017@gmail.com>
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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-03  5:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28  6:29 [dpdk-dev] Can we run KNI under a container chetan bhasin
2021-06-03  5:50 ` [dpdk-dev] Can we run KNI under a container /Kubernetes POD chetan bhasin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).