Hi Mishal, “set <portlist> size <value>” works weel. Thank you so much!
Best Regards, Xu, Chenjie From: Mishal Shah <shahmishal1...@gmail.com> Sent: Friday, July 10, 2020 5:10 PM To: Xu, Chenjie <chenjie...@intel.com> Cc: Van Haaren, Harry <harry.van.haa...@intel.com>; users@dpdk.org Subject: Re: [dpdk-users] How to specify packet size of testpmd Hi, You can use the set <portlist> size <value> command on pktgen command line to set the packet size. If you're using Lua script for more customizations/situations, you can use the following command: pktgen.set(port, "size", pktSize); The entire list of commands can be found at https://pktgen-dpdk.readthedocs.io/en/latest/commands.html Hope that helps. Regards, Mishal