From: Wael Abualrub
Sent: Wednesday, October 25, 2017 11:10 AM
To: '[email protected]' <[email protected]>
Subject: Unable to Configure GRO in Testpmd

Hello Jiayu,

This's Wael from Mellanox DPDK team, I'm working on GRO feature and seems to be 
not working on my machines, I do the following:

First I'm starting testpmd using the following command line:
"
/download/dpdk/x86_64-native-linuxapp-gcc/build/app/test-pmd/testpmd n 4 -w 
82:00.0 -w 82:00.1 -- --burst=64 --mbcache=512 --portmask 0xf -i --txd=1024 
--rxd=1024 --nb-cores=9 --rxq=2 --txq=2 --txqflags=0
"
Then:
Testpmd> set fwd csum
Testpmd> gro on 0
Testpmd> gro on  1
Testpmd> start

Then send the following TCP/IPV4 fragmented packet via scapy:
"
p=Ether(src=get_if_hwaddr('ens3f1'), dst= 
'24:8A:07:8D:AE:B6')/IP(src='1.1.1.1', 
dst='192.168.241.100')/TCP(sport=3512,dport=545)
p.add_payload(('F' * 500))
frags=fragment(p, fragsize=100)
for fragment in frags:send(fragment,iface="ens3f0")
"
"
<Ether  dst=24:8A:07:8D:AE:B6 src=24:8a:07:8d:ae:c7 type=IPv4 |<IP  flags=MF 
frag=0 proto=tcp src=1.1.1.1 dst=192.168.241.100 |<Raw  
load='\r\xb8\x02!\x00\x00\x00\x00\x00\x00\x00\x00P\x02 
\x00)f\x00\x00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'
 |>>>
<Ether  dst=24:8A:07:8D:AE:B6 src=24:8a:07:8d:ae:c7 type=IPv4 |<IP  flags=MF 
frag=13 proto=tcp src=1.1.1.1 dst=192.168.241.100 |<Raw  
load='FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'
 |>>>
<Ether  dst=24:8A:07:8D:AE:B6 src=24:8a:07:8d:ae:c7 type=IPv4 |<IP  flags=MF 
frag=26 proto=tcp src=1.1.1.1 dst=192.168.241.100 |<Raw  
load='FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'
 |>>>
<Ether  dst=24:8A:07:8D:AE:B6 src=24:8a:07:8d:ae:c7 type=IPv4 |<IP  flags=MF 
frag=39 proto=tcp src=1.1.1.1 dst=192.168.241.100 |<Raw  
load='FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'
 |>>>
<Ether  dst=24:8A:07:8D:AE:B6 src=24:8a:07:8d:ae:c7 type=IPv4 |<IP  flags= 
frag=52 proto=tcp src=1.1.1.1 dst=192.168.241.100 |<Raw  
load='FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'
 |>>>
"

With this configuration is the expected to receive the fragmented packets and 
merge it as a single one?

Kindest Regards,
Wael Abualrub

Reply via email to