Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run ans failed (nb_tx_desc(=2048), should be: <= 1024, = 128) #131

Open
sanhuanshisanshao opened this issue Aug 24, 2020 · 1 comment
Open

Comments

@sanhuanshisanshao
Copy link

hello, I get some error when I'm trying run ans.

input:
./ans -c 0x4 -n 1 --base-virtaddr=0x2aaa2aa0000 -- -p 0x1 --config="(0,0,2)"

output:
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0000:00:05.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 1d0f:ec20 net_ena
EAL: PCI device 0000:00:06.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 1d0f:ec20 net_ena

Start to Init port
port 0:
port name net_ena:
max_rx_queues 8: max_tx_queues:8
rx_offload_capa 0x800: tx_offload_capa:0xe
Creating queues: rx queue number=1 tx queue number=1...
MAC Address:02:8B:F3:73:79:D8
Deault-- tx pthresh:0, tx hthresh:0, tx wthresh:0, tx offloads:0x0
lcore id:2, tx queue id:0, socket id:0
Conf-- tx pthresh:0, tx hthresh:0, tx wthresh:0, tx offloads:0xe
Invalid value for nb_tx_desc(=2048), should be: <= 1024, = 128, and a product of 1
EAL: Error - exiting with code: 1
Cause: rte_eth_tx_queue_setup: err=-22, port=0

Please help me how to fix it, thanks!

@bluenet13
Copy link
Member

change nb_tx_desc in ans_main.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants