L2FWD Pktgen issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

L2FWD Pktgen issue

1,022 次查看
etienne_cordroc
Contributor I

Hello dear,

I'm using LS1043ARDB and LS1046ARDB with LS1046 as a packet generator with pktgen application and LS1043 running L2FWD application. I use LSDK 19.09. My problem is that L2FWD is only working when I set the packet type of generated packet to ARP in pktgen, however it doesn't forward when the type is IPV4.

I have port 0 of 1046 connected to port 0 of 1043 and port 1 of 1046 connected to port 1 of 1043.

I have done the following configuration for both cards :

  • edit boot command arg with :bootargs.PNG
  • load fsl-ls104xa-rdb-usdpaa.dtb device tree
  • fmc command (config_ls1046 also) : fmc.PNG

Pktgen command (on ls1046) :

pktgen -l 0-2 -n 1 --proc-type auto --file-prefix pg --log-level 8 -- -T -P -m "[1].0, [2].1"

L2FWD command (ls1043):

l2fwd -v -c 0x6 -n 1 -- -p 0x3 -b 7 -q 1 --mac-updating

l2fwd_log_issue.PNG

When I use set all type arp command it working well :

pktgen_arp.PNG

When packet type is ipv4, l2fwd doesn't forward, even if i set the mac destination address correctly for both ports :

pkgen_issue.PNG

If anyone has a suggestion, some help would be very appreciated,

Thanks,

Etienne

标记 (2)
0 项奖励
回复
1 回复

960 次查看
etienne_cordroc
Contributor I

Hello again,

I figured out my mistake, L2FWD was not working because pktgen was set with TCP protocol. Since it is a connected protocol and L2FWD is not made to handle this case it was not forwarding. When I set pktgen protocol to UDP instead, L2FWD is working correctly.

Etienne

0 项奖励
回复