net_virtio_user driver support

116 views
Skip to first unread message

Daniele Zulberti

unread,
Feb 8, 2022, 9:33:31 AM2/8/22
to TRex Traffic Generator
Hi,

I'm trying to run trex in a Kubernetes cluster.
I have a master node and a worker node. In the worker is running OvS-DPDK and I have one pod with a trex container that is connected with Userspace CNI and Multus to OvS.
The interface is a net_virtio_user.

I'm getting this error from trex:

$ ./t-rex-64 -i --no-scapy-server --nc --no-watchdog
The ports are bound/configured.
Starting  TRex v2.86 please wait  ...
EAL:   cannot open VFIO container, error 2 (No such file or directory)
update_memory_region(): Failed to get fd, ms=0x100033000 rte_errno=95
update_memory_region(): Failed to get fd, ms=0x100033000 rte_errno=95

Error: driver net_virtio_user is not supported. Please consult the documentation for a list of supported drivers


-------------------Configuration file---------------------

trex_cfg.yaml:

- port_limit    : 2
  version       : 2
  interfaces    : ["--vdev=virtio_user0,path=/usrspcni/74ab18eb76f8-net1", "--vdev=virtio_user1,path=/usrspcni/74ab18eb76f8-net2"]   # list of the interfaces
  port_info       :  # set eth mac addr
          - dest_mac        :   "3c:fd:fe:b4:41:09"  # port 0
            src_mac         :   "3c:fd:fe:b4:41:08"
          - dest_mac        :   "3c:fd:fe:b4:41:08"  # port 1
            src_mac         :   "3c:fd:fe:b4:41:09"

Is it possible to use this type of interface or it isn't supported at all?

Thanks,
Daniele

hanoh haim

unread,
Feb 8, 2022, 10:01:54 AM2/8/22
to Daniele Zulberti, TRex Traffic Generator
Hi, 
You should provide the PCI addr of the virtio 
 ```interfaces: ['00:04.0', '00:0a.0']```
 

Daniele Zulberti

unread,
Feb 8, 2022, 10:19:46 AM2/8/22
to TRex Traffic Generator
Thank you for the reply,
virtio_user does not have PCI-IDs, it uses socketfiles.

hanoh haim

unread,
Feb 8, 2022, 1:22:30 PM2/8/22
to Daniele Zulberti, TRex Traffic Generator
I’m not sure we added the driver files. 

Thanks
Hanoh

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/035af97d-9e0d-4438-a627-c6cdc8437ed0n%40googlegroups.com.
--
Hanoh
Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages