Virtio interfaces - Trex

230 views
Skip to first unread message

Devis Reagan

unread,
Jan 14, 2022, 11:15:17 AM1/14/22
to TRex Traffic Generator
Dear Team ,

I have a virtio hardware , it exposes virtual functions . I have binded the VF to vfio-pci and using pktgen (dpdk based traffic generator) and able to send up to 45Gbps . When using trex I could see it’s not sending beyond 10Gbps , because the trex sees the interface as 10Gbps . Though the interface show as 10G , it can send more than 20G (that’s true through pktgen) . Is there a way we can make the trex to see the interface at 20G through configuration? Though the interface as such show as 10G at the kernel level . Looks it’s taking that 10G from some where while it’s starting and does not send beyond 10G 

Thanks ,
Devis Reagan

hanoh haim

unread,
Jan 16, 2022, 4:02:05 AM1/16/22
to Devis Reagan, TRex Traffic Generator
Hi Devis, 
I assume you are referring to STL. In the past, it was limited to one core so 10gbps was chosen. On latest version there is no limitation (there is rss in software and multi-core).
There is a force field in the start command that you can use to override the limit of the port, or just change the code to support 100gbps to this interface 

Thanks
Hanoh

Devis Reagan

unread,
Jan 17, 2022, 6:35:35 AM1/17/22
to hanoh haim, TRex Traffic Generator
Hi Hanoh,

I will thy the force option . What do you mean by change the code ? Are you referring to change the virtio driver code or what ?

Thanks ,
Devis Reagan

hanoh haim

unread,
Jan 17, 2022, 9:03:11 AM1/17/22
to Devis Reagan, TRex Traffic Generator
Hi Devis, this class TRexPortAttr has a function get_link_speed, just override this class and on this driver return a different fixed
with 100gbps limit.

This is the driver

Reply all
Reply to author
Forward
0 new messages