[dpdk-dev] Please help about testpmd bonding

Hekai Wang hewang at redhat.com
Thu Oct 24 07:19:51 CEST 2019


Hi
I hit a trouble when i create a testpmd bond in guest and want to get some
help from you.

Here is the detail

FIrst create vm
Install dpdk in vm
attach i40e vf to vm
start testpmd in vm and create bonding with the ports which was attached
before .

:: [ 00:41:36 ] :: [  BEGIN   ] :: Running 'virsh dumpxml g2'
<domain type='kvm' id='6'>
  <name>g2</name>
  <uuid>37425e76-af6a-44a6-aba0-73434afe34c2</uuid>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <memoryBacking>
    <hugepages>
      <page size='1048576' unit='KiB'/>
    </hugepages>
    <access mode='shared'/>
  </memoryBacking>
  <vcpu placement='static'>3</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='7'/>
    <vcpupin vcpu='1' cpuset='9'/>
    <vcpupin vcpu='2' cpuset='11'/>
    <emulatorpin cpuset='1'/>
  </cputune>
  <numatune>
    <memory mode='strict' nodeset='0'/>
  </numatune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-rhel7.5.0'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pmu state='off'/>
    <vmport state='off'/>
    <ioapic driver='qemu'/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <feature policy='require' name='tsc-deadline'/>
    <numa>
      <cell id='0' cpus='0-2' memory='4194304' unit='KiB'
memAccess='shared'/>
    </numa>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <pm>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
  </pm>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/root/g2.qcow2'/>
      <backingStore/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00'
function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='none'>
      <alias name='usb'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x11'/>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0x8'/>
      <alias name='pci.3'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0x9'/>
      <alias name='pci.4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0xa'/>
      <alias name='pci.5'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x0'/>
    </controller>
    <controller type='pci' index='6' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='6' port='0xb'/>
      <alias name='pci.6'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07'
function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f'
function='0x2'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:bb:63:7c'/>
      <source bridge='virbr0'/>
      <target dev='vnet1'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00'
function='0x0'/>
    </interface>
    <interface type='hostdev' managed='yes'>
      <mac address='52:54:00:1e:be:cf'/>
      <driver name='vfio'/>
      <source>
        <address type='pci' domain='0x0000' bus='0x84' slot='0x02'
function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00'
function='0x0'/>
    </interface>
    <interface type='hostdev' managed='yes'>
      <mac address='52:54:00:0e:a5:6f'/>
      <driver name='vfio'/>
      <source>
        <address type='pci' domain='0x0000' bus='0x84' slot='0x0a'
function='0x0'/>
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00'
function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/2'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <serial type='pty'>
      <source path='/dev/pts/3'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial1'/>
    </serial>
    <console type='pty' tty='/dev/pts/2'>
      <source path='/dev/pts/2'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='mouse' bus='ps2'>
      <alias name='input0'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input1'/>
    </input>
    <graphics type='vnc' port='5901' autoport='yes' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00'
function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x06' slot='0x00'
function='0x0'/>
    </memballoon>
    <iommu model='intel'>
      <driver intremap='on' caching_mode='on' iotlb='on'/>
    </iommu>
  </devices>
  <seclabel type='dynamic' model='selinux' relabel='yes'>
    <label>system_u:system_r:svirt_t:s0:c401,c410</label>
    <imagelabel>system_u:object_r:svirt_image_t:s0:c401,c410</imagelabel>
  </seclabel>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+107:+1001</label>
    <imagelabel>+107:+1001</imagelabel>
  </seclabel>
</domain>

:: [ 00:41:36 ] :: [   PASS   ] :: Command 'virsh dumpxml g2' (Expected 0,
got 0)
:: [ 00:41:36 ] :: [   LOG    ] ::
*****************************************************************
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   ovs_dpdk_and_sriov_dpdk_performance_test active-backup Config vm1 and
vm2 testpmd command
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 00:41:48 ] :: [   LOG    ] ::  /root/one_gig_hugepages.sh 1
:: [ 00:41:48 ] :: [   LOG    ] ::  rpm -ivh /root/18.11.2-1.el7_6/dpdk*.rpm
:: [ 00:41:48 ] :: [   LOG    ] ::  modprobe -r vfio_iommu_type1
:: [ 00:41:48 ] :: [   LOG    ] ::  modprobe -r vfio
:: [ 00:41:48 ] :: [   LOG    ] ::  modprobe vfio
:: [ 00:41:48 ] :: [   LOG    ] ::  modprobe vfio-pci
:: [ 00:41:48 ] :: [   LOG    ] ::  ip link set eth1 down
:: [ 00:41:48 ] :: [   LOG    ] ::  dpdk-devbind -b vfio-pci 0000:03:00.0
:: [ 00:41:48 ] :: [   LOG    ] ::  dpdk-devbind -b vfio-pci 0000:04:00.0
:: [ 00:41:48 ] :: [   LOG    ] ::  dpdk-devbind --status
:: [ 00:41:48 ] :: [   LOG    ] ::
:: [ 00:41:56 ] :: [   LOG    ] :: /root/one_gig_hugepages.sh 1
:: [ 00:41:56 ] :: [   LOG    ] :: ++ echo 1
:: [ 00:41:56 ] :: [   LOG    ] :: rpm -ivh /root/18.11.2-1.el7_6/dpdk*.rpm
:: [ 00:41:56 ] :: [   LOG    ] :: modprobe -r vfio_iommu_type1
:: [ 00:41:56 ] :: [   LOG    ] :: modprobe -r vfio
:: [ 00:41:56 ] :: [   LOG    ] :: modprobe vfio
:: [ 00:41:56 ] :: [   LOG    ] :: modprobe vfio-pci
:: [ 00:41:56 ] :: [   LOG    ] :: ip link set eth1 down
:: [ 00:41:56 ] :: [   LOG    ] :: dpdk-devbind -b vfio-pci 0000:03:00.0
:: [ 00:41:56 ] :: [   LOG    ] :: dpdk-devbind -b vfio-pci 0000:04:00.0
:: [ 00:41:56 ] :: [   LOG    ] :: dpdk-devbind --status
:: [ 00:41:56 ] :: [   LOG    ] :: Network devices using DPDK-compatible
driver
:: [ 00:41:56 ] :: [   LOG    ] ::
============================================
:: [ 00:41:56 ] :: [   LOG    ] :: 0000:03:00.0 'Ethernet Virtual Function
700 Series 154c' drv=vfio-pci unused=iavf
:: [ 00:41:56 ] :: [   LOG    ] :: 0000:04:00.0 'Ethernet Virtual Function
700 Series 154c' drv=vfio-pci unused=iavf
:: [ 00:41:57 ] :: [   LOG    ] :: Network devices using kernel driver
:: [ 00:41:57 ] :: [   LOG    ] :: ===================================
:: [ 00:41:57 ] :: [   LOG    ] :: 0000:02:00.0 'Virtio network device
1041' if=eth1 drv=virtio-pci unused=virtio_pci,vfio-pci
:: [ 00:41:57 ] :: [   LOG    ] :: No 'Crypto' devices detected
:: [ 00:41:57 ] :: [   LOG    ] :: ============================
:: [ 00:41:57 ] :: [   LOG    ] :: No 'Eventdev' devices detected
:: [ 00:41:57 ] :: [   LOG    ] :: ==============================
:: [ 00:41:57 ] :: [   LOG    ] :: No 'Mempool' devices detected
:: [ 00:41:57 ] :: [   LOG    ] :: =============================
:: [ 00:41:57 ] :: [   LOG    ] :: No 'Compress' devices detected
:: [ 00:41:57 ] :: [   LOG    ] :: ==============================
:: [ 00:41:57 ] :: [   LOG    ] ::
:: [ 00:41:57 ] :: [   LOG    ] ::
:: [ 00:41:57 ] :: [   LOG    ] ::  rm -f cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  touch cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  echo 'set fwd macswap' >> cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  echo 'create bonded device 1 0' >>
cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  echo 'set bonding mode 1 2' >> cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  echo 'set bonding mon_period 2 100' >>
cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  echo 'add bonding slave 0 2' >> cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  echo 'add bonding slave 1 2' >> cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  echo 'set bonding primary 0 2' >>
cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  echo 'set bonding mac 2
52:54:00:1e:be:cf' >> cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  echo 'set fwd macswap' >> cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  echo 'set link-up port 2' >> cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::  echo 'show port info all' >> cmd_line
:: [ 00:41:57 ] :: [   LOG    ] ::
:: [ 00:41:57 ] :: [   LOG    ] ::  testpmd -l 0,1,2 --socket-mem 1024
--legacy-mem -n 4 -- --forward-mode=macswap --port-topology=chained
--disable-rss --cmdline-file=cmd_line -i --rxq=1 --txq=1 --rxd=256
--txd=256 --nb-cores=2 --auto-start
:: [ 00:41:57 ] :: [   LOG    ] ::
:: [ 00:42:09 ] :: [   LOG    ] :: rm -f cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: touch cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: echo 'set fwd macswap' >> cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: echo 'create bonded device 1 0' >>
cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: echo 'set bonding mode 1 2' >> cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: echo 'set bonding mon_period 2 100' >>
cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: echo 'add bonding slave 0 2' >> cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: echo 'add bonding slave 1 2' >> cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: echo 'set bonding primary 0 2' >>
cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: echo 'set bonding mac 2
52:54:00:1e:be:cf' >> cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: echo 'set fwd macswap' >> cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: echo 'set link-up port 2' >> cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: echo 'show port info all' >> cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: testpmd -l 0,1,2 --socket-mem 1024
--legacy-mem -n 4 --
:: [ 00:42:09 ] :: [   LOG    ] ::  --forward-mode=macswap
--port-topology=chained --disable-rss --cmd
:: [ 00:42:09 ] :: [   LOG    ] :: line-file=cmd_line -i --rxq=1 --txq=1
--rxd=256 --txd=256 --nb-cores=2 -
:: [ 00:42:09 ] :: [   LOG    ] :: -auto-start
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: Detected 3 lcore(s)
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: Detected 1 NUMA nodes
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: Multi-process socket
/var/run/dpdk/rte/mp_socket
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: Probing VFIO support...
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: VFIO support initialized
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: WARNING: cpu flags constant_tsc=yes
nonstop_tsc=no -> using unreliable clock cycles !
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: PCI device 0000:02:00.0 on NUMA
socket -1
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: Invalid NUMA socket, default to 0
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: probe driver: 1af4:1041 net_virtio
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: PCI device 0000:03:00.0 on NUMA
socket -1
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: Invalid NUMA socket, default to 0
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: probe driver: 8086:154c net_i40e_vf
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: using IOMMU type 1 (Type 1)
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: PCI device 0000:04:00.0 on NUMA
socket -1
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: Invalid NUMA socket, default to 0
:: [ 00:42:09 ] :: [   LOG    ] :: EAL: probe driver: 8086:154c net_i40e_vf
:: [ 00:42:09 ] :: [   LOG    ] :: Set macswap packet forwarding mode
:: [ 00:42:09 ] :: [   LOG    ] :: CLI commands to be read from cmd_line
:: [ 00:42:09 ] :: [   LOG    ] :: Interactive-mode selected
:: [ 00:42:09 ] :: [   LOG    ] :: Auto-start selected
:: [ 00:42:09 ] :: [   LOG    ] :: testpmd: create a new mbuf pool
<mbuf_pool_socket_0>: n=163456, size=2176, socket=0
:: [ 00:42:09 ] :: [   LOG    ] :: testpmd: preferred mempool ops selected:
ring_mp_mc
:: [ 00:42:09 ] :: [   LOG    ] :: Configuring Port 0 (socket 0)
:: [ 00:42:09 ] :: [   LOG    ] :: Port 0: 52:54:00:1E:BE:CF
:: [ 00:42:09 ] :: [   LOG    ] :: Configuring Port 1 (socket 0)
:: [ 00:42:09 ] :: [   LOG    ] :: Port 1: 52:54:00:0E:A5:6F
:: [ 00:42:09 ] :: [   LOG    ] :: Checking link statuses...
:: [ 00:42:09 ] :: [   LOG    ] :: Done
:: [ 00:42:09 ] :: [   LOG    ] :: Set macswap packet forwarding mode
:: [ 00:42:09 ] :: [   LOG    ] :: Created new bonded device
net_bonding_testpmd_0 on (port 2).
:: [ 00:42:09 ] :: [   LOG    ] :: mac_address_slaves_update(1634) - Failed
to update port Id 0 MAC address
:: [ 00:42:09 ] :: [   LOG    ] :: mac_address_slaves_update(1634) - Failed
to update port Id 0 MAC address
:: [ 00:42:09 ] :: [   LOG    ] :: Set macswap packet forwarding mode
:: [ 00:42:09 ] :: [   LOG    ] :: Set link up fail.
:: [ 00:42:09 ] :: [   LOG    ] :: ********************* Infos for port 0
*********************
:: [ 00:42:09 ] :: [   LOG    ] :: MAC address: 52:54:00:1E:BE:CF
:: [ 00:42:09 ] :: [   LOG    ] :: Device name: 0000:03:00.0
:: [ 00:42:09 ] :: [   LOG    ] :: Driver name: net_i40e_vf
:: [ 00:42:09 ] :: [   LOG    ] :: Connect to socket: 0
:: [ 00:42:09 ] :: [   LOG    ] :: memory allocation on the socket: 0
:: [ 00:42:09 ] :: [   LOG    ] :: Link status: up
:: [ 00:42:09 ] :: [   LOG    ] :: Link speed: 10000 Mbps
:: [ 00:42:09 ] :: [   LOG    ] :: Link duplex: full-duplex
:: [ 00:42:09 ] :: [   LOG    ] :: MTU: 1500
:: [ 00:42:09 ] :: [   LOG    ] :: Promiscuous mode: enabled
:: [ 00:42:09 ] :: [   LOG    ] :: Allmulticast mode: disabled
:: [ 00:42:09 ] :: [   LOG    ] :: Maximum number of MAC addresses: 64
:: [ 00:42:09 ] :: [   LOG    ] :: Maximum number of MAC addresses of hash
filtering: 0
:: [ 00:42:09 ] :: [   LOG    ] :: VLAN offload:
:: [ 00:42:09 ] :: [   LOG    ] ::  strip off
:: [ 00:42:09 ] :: [   LOG    ] ::  filter off
:: [ 00:42:09 ] :: [   LOG    ] ::  qinq(extend) off
:: [ 00:42:09 ] :: [   LOG    ] :: Hash key size in bytes: 52
:: [ 00:42:09 ] :: [   LOG    ] :: Redirection table size: 64
:: [ 00:42:09 ] :: [   LOG    ] :: Supported RSS offload flow types:
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv4-frag
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv4-tcp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv4-udp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv4-sctp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv4-other
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv6-frag
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv6-tcp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv6-udp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv6-sctp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv6-other
:: [ 00:42:09 ] :: [   LOG    ] ::  l2_payload
:: [ 00:42:09 ] :: [   LOG    ] :: Minimum size of RX buffer: 1024
:: [ 00:42:09 ] :: [   LOG    ] :: Maximum configurable length of RX
packet: 9728
:: [ 00:42:09 ] :: [   LOG    ] :: Current number of RX queues: 1
:: [ 00:42:09 ] :: [   LOG    ] :: Max possible RX queues: 4
:: [ 00:42:09 ] :: [   LOG    ] :: Max possible number of RXDs per queue:
4096
:: [ 00:42:09 ] :: [   LOG    ] :: Min possible number of RXDs per queue: 64
:: [ 00:42:09 ] :: [   LOG    ] :: RXDs number alignment: 32
:: [ 00:42:09 ] :: [   LOG    ] :: Current number of TX queues: 1
:: [ 00:42:09 ] :: [   LOG    ] :: Max possible TX queues: 4
:: [ 00:42:09 ] :: [   LOG    ] :: Max possible number of TXDs per queue:
4096
:: [ 00:42:09 ] :: [   LOG    ] :: Min possible number of TXDs per queue: 64
:: [ 00:42:09 ] :: [   LOG    ] :: TXDs number alignment: 32
:: [ 00:42:09 ] :: [   LOG    ] :: ********************* Infos for port 1
*********************
:: [ 00:42:09 ] :: [   LOG    ] :: MAC address: 52:54:00:0E:A5:6F
:: [ 00:42:09 ] :: [   LOG    ] :: Device name: 0000:04:00.0
:: [ 00:42:09 ] :: [   LOG    ] :: Driver name: net_i40e_vf
:: [ 00:42:09 ] :: [   LOG    ] :: Connect to socket: 0
:: [ 00:42:09 ] :: [   LOG    ] :: memory allocation on the socket: 0
:: [ 00:42:09 ] :: [   LOG    ] :: Link status: up
:: [ 00:42:09 ] :: [   LOG    ] :: Link speed: 10000 Mbps
:: [ 00:42:09 ] :: [   LOG    ] :: Link duplex: full-duplex
:: [ 00:42:09 ] :: [   LOG    ] :: MTU: 1500
:: [ 00:42:09 ] :: [   LOG    ] :: Promiscuous mode: enabled
:: [ 00:42:09 ] :: [   LOG    ] :: Allmulticast mode: disabled
:: [ 00:42:09 ] :: [   LOG    ] :: Maximum number of MAC addresses: 64
:: [ 00:42:09 ] :: [   LOG    ] :: Maximum number of MAC addresses of hash
filtering: 0
:: [ 00:42:09 ] :: [   LOG    ] :: VLAN offload:
:: [ 00:42:09 ] :: [   LOG    ] ::  strip off
:: [ 00:42:09 ] :: [   LOG    ] ::  filter off
:: [ 00:42:09 ] :: [   LOG    ] ::  qinq(extend) off
:: [ 00:42:09 ] :: [   LOG    ] :: Hash key size in bytes: 52
:: [ 00:42:09 ] :: [   LOG    ] :: Redirection table size: 64
:: [ 00:42:09 ] :: [   LOG    ] :: Supported RSS offload flow types:
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv4-frag
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv4-tcp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv4-udp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv4-sctp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv4-other
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv6-frag
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv6-tcp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv6-udp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv6-sctp
:: [ 00:42:09 ] :: [   LOG    ] ::  ipv6-other
:: [ 00:42:09 ] :: [   LOG    ] ::  l2_payload
:: [ 00:42:09 ] :: [   LOG    ] :: Minimum size of RX buffer: 1024
:: [ 00:42:09 ] :: [   LOG    ] :: Maximum configurable length of RX
packet: 9728
:: [ 00:42:09 ] :: [   LOG    ] :: Current number of RX queues: 1
:: [ 00:42:09 ] :: [   LOG    ] :: Max possible RX queues: 4
:: [ 00:42:09 ] :: [   LOG    ] :: Max possible number of RXDs per queue:
4096
:: [ 00:42:09 ] :: [   LOG    ] :: Min possible number of RXDs per queue: 64
:: [ 00:42:09 ] :: [   LOG    ] :: RXDs number alignment: 32
:: [ 00:42:09 ] :: [   LOG    ] :: Current number of TX queues: 1
:: [ 00:42:09 ] :: [   LOG    ] :: Max possible TX queues: 4
:: [ 00:42:09 ] :: [   LOG    ] :: Max possible number of TXDs per queue:
4096
:: [ 00:42:09 ] :: [   LOG    ] :: Min possible number of TXDs per queue: 64
:: [ 00:42:09 ] :: [   LOG    ] :: TXDs number alignment: 32
:: [ 00:42:09 ] :: [   LOG    ] :: ********************* Infos for port 2
*********************
:: [ 00:42:09 ] :: [   LOG    ] :: MAC address: 52:54:00:1E:BE:CF
:: [ 00:42:09 ] :: [   LOG    ] :: Device name: net_bonding_testpmd_0
:: [ 00:42:09 ] :: [   LOG    ] :: Driver name: net_bonding
:: [ 00:42:09 ] :: [   LOG    ] :: Devargs:
driver=net_bonding,mode=1,socket_id=0
:: [ 00:42:09 ] :: [   LOG    ] :: Connect to socket: 0
:: [ 00:42:09 ] :: [   LOG    ] :: memory allocation on the socket: 0
:: [ 00:42:09 ] :: [   LOG    ] :: Link status: down
:: [ 00:42:09 ] :: [   LOG    ] :: Link speed: 0 Mbps
:: [ 00:42:09 ] :: [   LOG    ] :: Link duplex: half-duplex
:: [ 00:42:09 ] :: [   LOG    ] :: MTU: 1500
:: [ 00:42:09 ] :: [   LOG    ] :: Promiscuous mode: enabled
:: [ 00:42:09 ] :: [   LOG    ] :: Allmulticast mode: disabled
:: [ 00:42:09 ] :: [   LOG    ] :: Maximum number of MAC addresses: 16
:: [ 00:42:09 ] :: [   LOG    ] :: Maximum number of MAC addresses of hash
filtering: 0
:: [ 00:42:10 ] :: [   LOG    ] :: VLAN offload:
:: [ 00:42:10 ] :: [   LOG    ] ::  strip off
:: [ 00:42:10 ] :: [   LOG    ] ::  filter off
:: [ 00:42:10 ] :: [   LOG    ] ::  qinq(extend) off
:: [ 00:42:10 ] :: [   LOG    ] :: Redirection table size: 64
:: [ 00:42:10 ] :: [   LOG    ] :: Supported RSS offload flow types:
:: [ 00:42:10 ] :: [   LOG    ] ::  ipv4-frag
:: [ 00:42:10 ] :: [   LOG    ] ::  ipv4-tcp
:: [ 00:42:10 ] :: [   LOG    ] ::  ipv4-udp
:: [ 00:42:10 ] :: [   LOG    ] ::  ipv4-sctp
:: [ 00:42:10 ] :: [   LOG    ] ::  ipv4-other
:: [ 00:42:10 ] :: [   LOG    ] ::  ipv6-frag
:: [ 00:42:10 ] :: [   LOG    ] ::  ipv6-tcp
:: [ 00:42:10 ] :: [   LOG    ] ::  ipv6-udp
:: [ 00:42:10 ] :: [   LOG    ] ::  ipv6-sctp
:: [ 00:42:10 ] :: [   LOG    ] ::  ipv6-other
:: [ 00:42:10 ] :: [   LOG    ] ::  l2_payload
:: [ 00:42:10 ] :: [   LOG    ] :: Minimum size of RX buffer: 0
:: [ 00:42:10 ] :: [   LOG    ] :: Maximum configurable length of RX
packet: 9728
:: [ 00:42:10 ] :: [   LOG    ] :: Current number of RX queues: 1
:: [ 00:42:10 ] :: [   LOG    ] :: Max possible RX queues: 4
:: [ 00:42:10 ] :: [   LOG    ] :: Max possible number of RXDs per queue:
4096
:: [ 00:42:10 ] :: [   LOG    ] :: Min possible number of RXDs per queue: 0
:: [ 00:42:10 ] :: [   LOG    ] :: RXDs number alignment: 1
:: [ 00:42:10 ] :: [   LOG    ] :: Current number of TX queues: 1
:: [ 00:42:10 ] :: [   LOG    ] :: Max possible TX queues: 4
:: [ 00:42:10 ] :: [   LOG    ] :: Max possible number of TXDs per queue:
4096
:: [ 00:42:10 ] :: [   LOG    ] :: Min possible number of TXDs per queue: 0
:: [ 00:42:10 ] :: [   LOG    ] :: TXDs number alignment: 1
:: [ 00:42:10 ] :: [   LOG    ] :: Read CLI commands from cmd_line
:: [ 00:42:10 ] :: [   LOG    ] :: Start automatic packet forwarding
:: [ 00:42:10 ] :: [   LOG    ] :: Not all ports were started
:: [ 00:42:10 ] :: [   LOG    ] ::

There are two issues
1. From the log ,we can see that the bond port can not up
2. There is some error log like
:: [ 00:42:09 ] :: [   LOG    ] :: mac_address_slaves_update(1634) - Failed
to update port Id 0 MAC address
:: [ 00:42:09 ] :: [   LOG    ] :: mac_address_slaves_update(1634) - Failed
to update port Id 0 MAC address
:: [ 00:42:09 ] :: [   LOG    ] :: Set macswap packet forwarding mode
:: [ 00:42:09 ] :: [   LOG    ] :: Set link up fail.

I really do not know what was happend .
Please help me and I am very appreciate.


More information about the dev mailing list