From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 799DBA045E for ; Fri, 31 May 2019 22:54:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BAD6A1B951; Fri, 31 May 2019 22:54:44 +0200 (CEST) Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) by dpdk.org (Postfix) with ESMTP id 860411B951 for ; Fri, 31 May 2019 22:54:43 +0200 (CEST) Received: by mail-qt1-f175.google.com with SMTP id 14so2631231qtf.0 for ; Fri, 31 May 2019 13:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=p8F43ezEHxO1CoBhLaYcLW3btvX6Dly6G312UA0g550=; b=lecQd5djgEkg/Gz7V8nKRV04oGy+BNcXSQletrdpEprSL5qYODoVQojAA4i+opmQLP t9tPLLj15MO0kgHad2MV28LDLXOsbKdJcCAgtFTstsYn6ggT8maYiotR/VVpvUoiCoan WcTmqxIPIrK0AJIsb4RG6igYC3sMkZehU+QgKuUm6xZmyBOXTEWp/AFFdgwAqW2yzsjV +QdvX+Qi9ec5s+sy2c/eljUb/OqM1m2gIuL7XMcVWfyuxdOJzzGnzhiNRglLId2N3kcA AdQTrnZP9Y1ygGAuyMDTrwZw6azMxZSDPIp+vzD2IPetqJ7HC6w/Ri0GaEKfajYF40P5 Ka6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=p8F43ezEHxO1CoBhLaYcLW3btvX6Dly6G312UA0g550=; b=j5hZsdHJCifFr+J6Ql3ZmJZ5nKeC3yEURonBA9dAjq22Sm2S1birRya3pTkzejAEQy icuMmuKNQQdhqOzBWUPokWq2cEEl3/uh4a6vAL2HUzVfZELWkUFTVZffHRlMRBHsxv6T ZTqtOT3jDHWmdVheCyMx+ZYuLHF8LkrGnmX6nwjM7DkCt3CDGY3qPeeoEjo/6pWbCcCo PtUGgGLyf1sjVeesP4qbUFCc2jSnyaPwXwSRn7I1fat3u5t/ULhsbwxyef1qr4Wfvj8J okQz42a+eMJVzigrzsJap8dBiWA+Kpqzu4+87XwCW6d6BCgYPXLmvCAQvbhsudLfTTZj asMw== X-Gm-Message-State: APjAAAX+PQDph536xpX4C1QsTP0vbU2LnQq/kzTfcT/PaKep784UDltc m0fcsvQQ2DBbFJW8tAMHTNbu8sfgEXt1Uq/setiu2qCW X-Google-Smtp-Source: APXvYqxSsVCacy47FVRdhbEmHQH3IRZs3KsO3vjkEjTVaDDcza2LyWgEVQU9/R1xktfuEDCRySmU0YNoG2smW1Smjk0= X-Received: by 2002:ac8:48c8:: with SMTP id l8mr10889200qtr.20.1559336082673; Fri, 31 May 2019 13:54:42 -0700 (PDT) MIME-Version: 1.0 From: Vincent Li Date: Fri, 31 May 2019 13:54:31 -0700 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-users] pktgen:I nvalid link properties for slave 0 in bonding mode 4 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi, I am running Pktgen 3.6.6 + DPDK 18.11.1. when I ran Pktgen with bonding as ( Pktgen runs fine without bonding and pass packet ok): root@compute1:/home/dpdk/pktgen-3.6.6# ./app/x86_64-native-linuxapp-gcc/pktgen -c ff --vdev='net_bonding0,mode=4,xmit_policy=l34,slave=0000:01:00.0,slave=0000:01:00.1' -- -P -m [1:2-7].2 I got: bond_ethdev_lsc_event_callback(2705) - Invalid link properties for slave 0 in bonding mode 4 bond_ethdev_lsc_event_callback(2705) - Invalid link properties for slave 1 in bonding mode 4 the full screen text as below: root@compute1:/home/dpdk/pktgen-3.6.6# ./app/x86_64-native-linuxapp-gcc/pktgen -c ff --vdev='net_bonding0,mode=4,xmit_policy=l34,slave=0000:01:00.0,slave=0000:01:00.1' -- -P -m [1:2-7].2 Copyright (c) <2010-2019>, Intel Corporation. All rights reserved. Powered by DPDK EAL: Detected 8 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Probing VFIO support... EAL: PCI device 0000:01:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10fb net_ixgbe EAL: PCI device 0000:01:00.1 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10fb net_ixgbe bond_ethdev_mode_set(1684) - Using mode 4, it is necessary to do TX burst and RX burst at least every 100ms. Lua 5.3.1 Copyright (C) 1994-2015 Lua.org, PUC-Rio *** Copyright (c) <2010-2019>, Intel Corporation. All rights reserved. *** Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<< Initialize Port 2 -- TxQ 6, RxQ 1, Src MAC 90:e2:ba:93:26:0c Device with port_id=0 already stopped Device with port_id=1 already stopped Port 2: Link Down RX processing lcore: 1 rx: 1 tx: 0 TX processing lcore: 2 rx: 0 tx: 1 TX processing lcore: 3 rx: 0 tx: 1 TX processing lcore: 4 rx: 0 tx: 1 TX processing lcore: 5 rx: 0 tx: 1 TX processing lcore: 6 rx: 0 tx: 1 TX processing lcore: 7 rx: 0 tx: 1 | Ports 0-2 of 3
Copyright (c) <2010-2019>, Intel Corporation Flags:Port : P--------------:2 Link State : ----TotalRate-- Pkts/s Max/Rx : 3/0 Max/Tx : 0/0 MBits/s Rx/Tx : 0/0 Broadcast : 0 Multicast : 0 Sizes 64 : 0 65-127 : 0 128-255 : 0 256-511 : 0 512-1023 : 0 1024-1518 : 0 Runts/Jumbos : 0/0 ARP/ICMP Pkts : 0/0 Errors Rx/Tx : 0/0 Total Rx Pkts : 8 Tx Pkts : 0 Rx MBs : 0 Tx MBs : 0 : Pattern Type : abcd... Tx Count/% Rate : Forever /100% Pkt Size/Tx Burst : 64 / 64 Port Src/Dest : 1234 / 5678 Pkt Type:VLAN ID : IPv4 / TCP:0001 802.1p CoS/DSCP/IPP : 0/ 0/ 0 VxLAN Flg/Grp/vid : 0000/ 0/ 0 IP Destination : 192.168.3.1 Source : 192.168.2.1/24 MAC Destination : 00:00:00:00:00:00 Source : 90:e2:ba:93:26:0c PCI Vendor/Addr : 0000:0000/00:00.0 -- Pktgen Ver: 3.6.6 (DPDK 18.11.1) Powered by DPDK (pid:28799) ------------- ** Version: DPDK 18.11.1, Command Line Interface without timers Pktgen:/> bond_ethdev_lsc_event_callback(2705) - Invalid link properties for slave 0 in bonding mode 4 bond_ethdev_lsc_event_callback(2705) - Invalid link properties for slave 1 in bonding mode 4 Pktgen:/> Pktgen can't transmit packet when I "start 2" after setting the correct dst ip, dst mac, dport / Ports 0-2 of 3
Copyright (c) <2010-2019>, Intel Corporation Flags:Port : P--------------:2 Link State : ----TotalRate-- <--------- Pkts/s Max/Rx : 3/0 Max/Tx : 0/0 MBits/s Rx/Tx : 0/0 Broadcast : 0 Multicast : 0 Sizes 64 : 0 65-127 : 0 128-255 : 0 256-511 : 0 512-1023 : 0 1024-1518 : 0 Runts/Jumbos : 0/0 ARP/ICMP Pkts : 0/0 Errors Rx/Tx : 0/0 Total Rx Pkts : 15 Tx Pkts : 0 Rx MBs : 0 Tx MBs : 0 : Pattern Type : abcd... Tx Count/% Rate : Forever /100% Pkt Size/Tx Burst : 64 / 64 Port Src/Dest : 1234 / 80 Pkt Type:VLAN ID : IPv4 / TCP:0001 802.1p CoS/DSCP/IPP : 0/ 0/ 0 VxLAN Flg/Grp/vid : 0000/ 0/ 0 IP Destination : 10.8.8.1 Source : 192.168.2.1/24 MAC Destination : 52:54:00:3f:b9:c2 Source : 90:e2:ba:93:26:0c PCI Vendor/Addr : 0000:0000/00:00.0 -- Pktgen Ver: 3.6.6 (DPDK 18.11.1) Powered by DPDK (pid:28825) ------------- Pktgen:/> set 2 dport 80 Pktgen:/> set 2 dst ip 10.8.8.1 Pktgen:/> set 2 dst mac 52:54:00:3f:b9:c2 Pktgen:/> start 2