From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by dpdk.org (Postfix) with ESMTP id 24E722BD1 for ; Fri, 22 Apr 2016 19:47:43 +0200 (CEST) Received: by mail-lf0-f51.google.com with SMTP id j11so83514905lfb.1 for ; Fri, 22 Apr 2016 10:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to :content-transfer-encoding; bh=aG8VH6LRuu/4xtSn09P/DHUcWVuFf7M+T1cVIoLxcAU=; b=kD1RwgRf4WYQtp8b+MZZdHDy0iI40bDfz7iXHilP/6SrZMlJqZ9i7q+EkDFEDf6pKy DNuIm01aeM7/WtGRFYz5pMBudOSIdHCGmQPsTajCYaaKT7Ep+t57soSXUEneficzhEWm ekTp3hQoPcs2ym67AVHIBVOEbOMt7S5ALq9IUvJrFHLN2xChfjOz+FVAmGhLNEN9LTja weZiKU72A5GEAP2bE+lMmLUPDRZczMqEqsyezwoha1yRC6jkIoNEldBDgAZA3qh+RKFT xjlM2hwpIfWgBkuTaPwzZVBxlv9m/ottEV9UX+2z3AKLbVEXmDfNU89oE4WYMJD4EEhI lUJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-transfer-encoding; bh=aG8VH6LRuu/4xtSn09P/DHUcWVuFf7M+T1cVIoLxcAU=; b=hCs9nu4DlxU6YZb5sbTuROAtcZeZo2l1mN5tvpwAdspAxeUeih16ZfQBn7ASM9yiV/ dpT8L8e7eJKQbOIUyH4S8Npkp3xdmFkMi7roj+oDxJUgy/dHJP5c9vSN4PfwL8Z5C2YW YEf8UpUvr6TdlQWcpBzTRgdIc+YWVbE5j0WzTE0kRFFiKJm8GxayIY9z0DtDG5rpFh4B kBfRjz8ismcYyGqALqa3NDwvvKj69hay/b+nHUcRrXzDGE06QUp5o/zRracqBIVRgOdY MQ/psduQNouVLWGKJoBsnduBR3m5K53M9AKF07o+J8MR0Lcufv44cXcJhlM9hYkhr2nt 2oHw== X-Gm-Message-State: AOPr4FXTPlj7LP6lYc4b1I6AXdPW6waNxqKVu9cXl7exi5zcN6br7fFkYa2tLWgC9WvL7PQA2/Efd0kw3Z1B6Q== MIME-Version: 1.0 X-Received: by 10.25.146.65 with SMTP id u62mr1237033lfd.121.1461347262812; Fri, 22 Apr 2016 10:47:42 -0700 (PDT) Received: by 10.25.15.207 with HTTP; Fri, 22 Apr 2016 10:47:42 -0700 (PDT) Date: Fri, 22 Apr 2016 10:47:42 -0700 Message-ID: From: Vincent Li To: "users@dpdk.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [dpdk-users] pktgen-dpdk range for udp proto seems not working X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2016 17:47:43 -0000 Hi, I noticed when I run range setting for UDP protocol, it does not work and it defaults to TCP, for exmaple, I run pktgen as below: #./app/app/x86_64-native-linuxapp-gcc/pktgen -c 1ff -n 3 --proc-type auto -- -P -m "[1:3].0, [2:4].0, [5:7].0, [6:8].0" Pktgen> load udp.txt Pktgen> page range Port # Port-0 dst.ip : 10.1.72.17 inc : 0.0.0.1 min : 10.1.72.17 max : 10.1.72.17 : src.ip : 10.1.72.154 inc : 0.0.0.1 min : 10.1.72.154 max : 10.1.72.254 : ip_proto : TCP <=3D=3D=3D=3D=3D=3D=3D=3DNote here is= TCP : dst.port / inc : 0/ 1 min / max : 0/ 254 : src.port / inc : 1025/ 1 min / max : 1025/65512 : the udp.txt below, it has 'proto udp 0' # # Pktgen - Ver: 2.9.17 (DPDK 16.04.0-rc2) # Copyright (c) <2010-2016>, Intel Corporation. All rights reserved., Powered by Intel=C2=AE DPDK # Command line arguments: (DPDK args are defaults) # ./app/app/x86_64-native-linuxapp-gcc/pktgen -c 1ff -n 3 -m 512 --proc-type primary -- -P -m [1:3].0, [2:4].0, [5:7].0, [6:8].0 ####################################################################### # Pktgen Configuration script information: # GUI socket is Not Enabled # Flags 00000004 # Number of ports: 1 # Number ports per page: 4 # Number descriptors: RX 512 TX: 512 # Promiscuous mode is Enabled ####################################################################### # Global configuration: geometry 132x44 mac_from_arp disable ######################### Port 0 ################################## # # Port: 0, Burst: 32, Rate:100%, Flags:00000000, TX Count:Forever # SeqCnt:0, Prime:1 VLAN ID:0001, Link: # # Set up the primary port information: set 0 count 0 set 0 size 64 set 0 rate 100 set 0 burst 32 set 0 sport 1234 set 0 dport 5678 set 0 prime 1 type ipv4 0 proto udp 0 <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D here is UDP, = not TCP set ip dst 0 10.1.72.17 set ip src 0 10.1.72.154/24 set mac 0 00:23:e9:64:c0:03 vlanid 0 1 pattern 0 abc user.pattern 0 0123456789abcdef^B latency 0 disable mpls 0 disable mpls_entry 0 0 qinq 0 disable qinqids 0 0 0 gre 0 disable gre_eth 0 disable gre_key 0 0 # # Port flag values: icmp.echo 0 disable pcap 0 disable range 0 enable process 0 disable capture 0 disable rxtap 0 disable txtap 0 disable vlan 0 disable # # Range packet information: src.mac start 0 00:50:56:86:10:76 src.mac min 0 00:00:00:00:00:00 src.mac max 0 00:00:00:00:00:00 src.mac inc 0 00:00:00:00:00:00 dst.mac start 0 00:23:e9:64:c0:03 dst.mac min 0 00:00:00:00:00:00 dst.mac max 0 00:00:00:00:00:00 dst.mac inc 0 00:00:00:00:00:00 src.ip start 0 10.1.72.154 src.ip min 0 10.1.72.154 src.ip max 0 10.1.72.254 src.ip inc 0 0.0.0.1 dst.ip start 0 10.1.72.17 dst.ip min 0 10.1.72.17 dst.ip max 0 10.1.72.17 dst.ip inc 0 0 src.port start 0 1025 src.port min 0 1025 src.port max 0 65512 src.port inc 0 1 dst.port start 0 0 dst.port min 0 0 dst.port max 0 254 dst.port inc 0 1 vlan.id start 0 1 vlan.id min 0 1 vlan.id max 0 4095 vlan.id inc 0 0 pkt.size start 0 64 pkt.size min 0 64 pkt.size max 0 1518 pkt.size inc 0 0 # # Set up the sequence data for the port. set 0 seqCnt 0 ################################ Done Am I miss anything?