af_packet can't send packet more than framecnt

2023-03-19 Thread hfli
Hi, I used af_packet interface, but found only can send packets successfully less than framecnt argument. E.g. if I pass "--vdev=eth_af_packet0,iface=tap0,blocksz=4096,framesz=2048,framecnt=512,qpa irs=1,qdisc_bypass=0" to DPDK, the rte_eth_tx_burst only return 1 for 512 times, after that it alw

回复: af_packet can't send packet more than framecnt

2023-03-20 Thread hfli
Hi, The issue has been resolved when I patched new code from dpdk 22.12, my dpdk version is 19.11 Index: rte_eth_af_packet.c === --- rte_eth_af_packet.c (版本 44115) +++ rte_eth_af_packet.c (版本 44128) @@ -169,6 +169,29 @@ } /* + *

回复: 回复: af_packet can't send packet more than framecnt

2023-03-20 Thread hfli
Hi Stephen, Thanks for your response, my OS is CentOS7.9, so the kernel is 3.10. However, the issue has been resolved depend on new DPDK code. Regards, Haifeng -邮件原件- 发件人: Stephen Hemminger 发送时间: 2023年3月21日 0:54 收件人: h...@netitest.com 抄送: dev@dpdk.org 主题: Re: 回复: af_packet can't send

build dpdk error by gcc 8.4.0

2023-03-21 Thread hfli
Hi Dev, When I build dpdk on CentOS7.9 and GCC 8.4.0, it throw “operand type mismatch for `vpclmulqdq'”, how can I fix this? FAILED: lib/net/libnet_crc_avx512_lib.a.p/net_crc_avx512.c.o ccache cc -Ilib/net/libnet_crc_avx512_lib.a.p -Ilib/net -I../lib/net -I. -I.. -Iconfig -I../config -Ilib/eal/i

回复: build dpdk error by gcc 8.4.0

2023-03-22 Thread hfli
Hi Bruce, The issue has been fixed after I upgrade binutis to 2.38, thanks a lot. Regards, Haifeng -邮件原件- 发件人: Bruce Richardson 发送时间: 2023年3月21日 19:54 收件人: h...@netitest.com 抄送: dev@dpdk.org 主题: Re: build dpdk error by gcc 8.4.0 On Tue, Mar 21, 2023 at 03:13:14PM +0800, h...@netitest

[dpdk-dev] How to send packet with line rate on I350-DA2, but not care rx speed

2019-03-08 Thread hfli
Wenzhuo, >From "MAINTAINERS" file in package of dpdk source code, I know that you maintain e1000e driver now, could you help me for an question? I use DPDK-pktgen based on Intel I350-DA2 network adapters, when I loopback two ports on one NIC(I350_eth1 <-> I350_eth2), I got 1Gbps line rate T

[dpdk-dev] 8023ad bond tx crashed if one port has 2 more tx queues

2019-03-19 Thread hfli
Hi Guys, I found a bug in dpdk bond code, while one port has 2 more tx queues, 8023ad bond port will be crashed in tx burst. Just analyzed the code below, if 2 more CPU cores send packets on a port by different tx queue, the arrays like slave_port_ids/ dist_slave_port_ids/ slave_tx_fail_c