[dpdk-users] pktgen:I nvalid link properties for slave 0 in bonding mode 4

Vincent Li vincent.mc.li at gmail.com
Fri May 31 22:54:31 CEST 2019


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 at 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 at 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 <Enable promiscuous mode>


  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   <Main Page>  Copyright (c) <2010-2019>, Intel Corporation

  Flags:Port        :
P--------------:2

Link State          :                         ----TotalRate--
<UP-20000-HD>

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   <Main Page>  Copyright (c) <2010-2019>, Intel Corporation

  Flags:Port        :
P--------------:2

Link State          :                         ----TotalRate--
<UP-20000-HD> <---------

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


More information about the users mailing list