Make trex return used ports

317 views
Skip to first unread message

Dave Houser

unread,
Apr 19, 2021, 10:59:34 AM4/19/21
to TRex Traffic Generator
I already know about the "./dpdk_setup_ports.py -L" which returns ports. But this command does not return ports that have been assigned.

Only solution I found to make this work was to reboot the whole server....

How do I get assigned ports back?

Petr Redkin

unread,
Apr 19, 2021, 12:54:21 PM4/19/21
to Dave Houser, TRex Traffic Generator
Dave, use ./dpdk_nic_bind.py script

To unbind 0000:01:00.0 from using any driver
        dpdk_nic_bind.py -u 0000:01:00.0

To bind 0000:02:00.0 and 0000:02:00.1 to the ixgbe kernel driver
   ./dpdk_nic_bind.py -b ixgbe 0000:02:00.0  0000:02:00.1


пн, 19 апр. 2021 г. в 17:59, Dave Houser <daveh...@gmail.com>:
I already know about the "./dpdk_setup_ports.py -L" which returns ports. But this command does not return ports that have been assigned.

Only solution I found to make this work was to reboot the whole server....

How do I get assigned ports back?

--
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/d0061412-0d6e-4604-9ea9-f9b5b588d34fn%40googlegroups.com.
Message has been deleted

Dave Houser

unread,
Apr 19, 2021, 1:29:39 PM4/19/21
to TRex Traffic Generator
Thanks Peter,

So I tried that command and it looks like it releases the interface, but how do I return it back to my kernel? 

You can see after I ran the command the interfaces are now under "Other devices"

# ./dpdk_nic_bind.py --status

Network devices using DPDK-compatible driver
============================================
<none>

Network devices using kernel driver
===================================
0000:19:00.0 'I350 Gigabit Network Connection' if=em1 drv=igb unused=igb_uio
0000:19:00.1 'I350 Gigabit Network Connection' if=em2 drv=igb unused=igb_uio
0000:19:00.2 'I350 Gigabit Network Connection' if=em3 drv=igb unused=igb_uio
0000:19:00.3 'I350 Gigabit Network Connection' if=em4 drv=igb unused=igb_uio *Active*
0000:86:00.0 'Ethernet Controller X710 for 10GbE SFP+' if=p7p1 drv=i40e unused=igb_uio
0000:86:00.1 'Ethernet Controller X710 for 10GbE SFP+' if=p7p2 drv=i40e unused=igb_uio
0000:86:00.2 'Ethernet Controller X710 for 10GbE SFP+' if=p7p3 drv=i40e unused=igb_uio
0000:86:00.3 'Ethernet Controller X710 for 10GbE SFP+' if=p7p4 drv=i40e unused=igb_uio

Other network devices
=====================
0000:5e:00.0 'Ethernet Controller X710 for 10GbE SFP+' unused=i40e,igb_uio
0000:5e:00.1 'Ethernet Controller X710 for 10GbE SFP+' unused=i40e,igb_uio
0000:5e:00.2 'Ethernet Controller X710 for 10GbE SFP+' unused=i40e,igb_uio
0000:5e:00.3 'Ethernet Controller X710 for 10GbE SFP+' unused=i40e,igb_uio

But my kernel does not see the interfaces at all, how do I return them back to kernel control?

# ip -br addr show
lo               UNKNOWN        127.0.0.1/8 ::1/128
em1              DOWN
em2              DOWN
em3              DOWN
em4              UP             10.104.8.63/22 fe80::aca9:4724:d7a7:97c6/64
p7p1             DOWN
p7p2             DOWN
p7p3             UP             192.168.168.10/24 fe80::faf2:1eff:febd:1092/64
p7p4             UP             192.168.168.11/24 fe80::faf2:1eff:febd:1093/64
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages