Open Snailfl opened 1 year ago
continued: int CTRexExtendedDriverBase2500M::configure_rx_filter_rules(CPhyEthIF * _if) { set_rcv_all(_if, false); if ( get_is_stateless() ) { return configure_rx_filter_rules_stateless(_if); } else { return configure_rx_filter_rules_statefull(_if); } return 0; } I wonder if this acceptance rule is the cause? If yes, what should I do?
I am recently using I225 with trex, after add igc driver to trex, I also encounter the problem because the default dpdk_nic_bind.py shipped with trex does not support bind to vfio-pci.
after change the device driver to vfio-pci, I can get test passed.
Hope this may help.
@fortitudepub could you try to work in software mode?
just add --software
instead of changing the dpdk filter code
@fortitudepub Hello, is it convenient to know how you get it to bind to vfio-pci on ubuntu?
Hi~ I have changed the code on my device, now it supports i225 electrical port, but it can only send data packets, but cannot receive data packets. My environment is self-loop. The environment is as follows: root@snail:/home/snail/v3.02# cat /etc/trex_cfg.yaml
Config file generated by dpdk_setup_ports.py
version: 2 interfaces: ['08:00.0', '09:00.0'] port_info:
platform: master_thread_id: 0 latency_thread_id: 1 dual_if:
Network devices using DPDK-compatible driver
0000:08:00.0 'Ethernet Controller I225-V' drv=uio_pci_generic unused=igc,igb_uio,vfio-pci 0000:09:00.0 'Ethernet Controller I225-V' drv=uio_pci_generic unused=igc,igb_uio,vfio-pci
-Per port stats table ports | 0 | 1
opackets | 196975266 | 0 obytes | 11818516728 | 0 ipackets | 0 | 495 ibytes | 0 | 29700 ierrors | 0 | 196975044 oerrors | 0 | 0 Tx Bw | 1.72 Gbps | 0.00 bps
You can see it's sent 196975266,But no package was received. I added trex_driver_igc.cpp in src/drivers/ and overwrote some virtual functions. I wonder if it's true: