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 :
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
When I use set all type arp command it working well :
When packet type is ipv4, l2fwd doesn't forward, even if i set the mac destination address correctly for both ports :
If anyone has a suggestion, some help would be very appreciated,
Thanks,
Etienne
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