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 46216A00E6 for ; Wed, 17 Apr 2019 10:45:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 299E61B5CF; Wed, 17 Apr 2019 10:45:43 +0200 (CEST) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) by dpdk.org (Postfix) with ESMTP id 36CF01B4D8 for ; Tue, 16 Apr 2019 16:45:31 +0200 (CEST) Received: by mail-lj1-f177.google.com with SMTP id t4so10856441ljc.2 for ; Tue, 16 Apr 2019 07:45:31 -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=SKYsF7UJd++6QfkOth2yT7HEZbWS8HARmbLRbdU7vg4=; b=jIHymu9ah/6C0q3QF41cULI+3DjpzWI1X/fu/MufZyzxxvcWkVYKYaTjdnC5qHCoMw shHENLFCx5LNhvJZA/oZIHSD+f2rkaVH4YxhhBpnK1Mvs0uSoP+zYnGMY95WGlD+8vNA 06fKMDuxPvYeLdd1RmIO8pEOjjD+HRo0lm19rvFQk+LW71OHwEE79jK5h2XmKaE9TWJ+ QHkD7s8IhpHldZti5IsTiXVkZ2RU1I/TG0O2c+mOntHzM/VYO/rh/riQfjpthHYdDZuf SPKuWnwpMyNYR/J3onFwJFuIlW2FMjdGQ1gTIC24ul/Edi6RAj8uJMn1+IoI3C3jWPb7 VaTA== 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=SKYsF7UJd++6QfkOth2yT7HEZbWS8HARmbLRbdU7vg4=; b=joWjrpS7h17/0wEmGwaPhJelgsCJGEGjAxesn2kXSjwu4QHwzNWhxtyVkBNrRokfP3 D0QJkQ5GH1JcdKocdlzjX3rc61ZBmRJDTO5cJEieJSB0+AcuwigjHTh/GKBwd/lgMdw4 nFMkirZSXwDCU13qYbVNk3B9Xbi2eQjQP5KXF89sm7rfa4+SanQwC6YpZFuRQ1jHmXqo hlNtmOFHWXEGVOKgDZlzl1AmjKgAUHtau2NwN3rPMPjIrSoz3g3LNtgCiXxYC42bSuJ4 94LrINT1yKnxvY8Fgf/6V2Bfn4FnFEYYxvDmDM0vgPALHC5RD6fKdKmJLo6hjt97Cjpf iAuQ== X-Gm-Message-State: APjAAAX3X/QdIGRNP7b3mtQBD2/i8mGJGdwgb0SSEYVbRTf0L+xZz+9k /3GfQ2/VawpYgo3nhkyvB3115ObfAND9QiTSH/OAsZXLIaA= X-Google-Smtp-Source: APXvYqzcoG5b0YHFMlQzf7zSs5dCj9oqij0eGurVXBrKkkVC2SrnZPl4EEvTvopC9wkv+BAuMNaZAkNTxa43RG2CeTM= X-Received: by 2002:a2e:9e47:: with SMTP id g7mr5666818ljk.48.1555425930421; Tue, 16 Apr 2019 07:45:30 -0700 (PDT) MIME-Version: 1.0 From: Sihao Xie Date: Tue, 16 Apr 2019 22:45:18 +0800 Message-ID: To: users@dpdk.org X-Mailman-Approved-At: Wed, 17 Apr 2019 10:45:40 +0200 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Pktgen cannot work with ovs-dpdk vhost user port 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, all I want to run pktgen with ovs, and I follow some tutorials in the network but I ran into some problems related to socket ID: Copyright (c) <2010-2019>, Intel Corporation. All rights reserved. Powered by DPDK EAL: Detected 6 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/pktgen/mp_socket EAL: Probing VFIO support... update_memory_region(): Too many memory regions update_memory_region(): Too many memory regions 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 0 -- TxQ 1, RxQ 1, Src MAC 00:00:00:00:00:01 Initialize Port 1 -- TxQ 1, RxQ 1, Src MAC 00:00:00:00:00:02 Port 0: Link Up - speed 10000 Mbps - full-duplex Port 1: Link Up - speed 10000 Mbps - full-duplex RX/TX processing lcore: 0 rx: 1 tx: 1 PANIC in pktgen_main_rxtx_loop(): *** port 0 socket ID 4294967295 has different socket ID for lcore 0 socket ID 0 7: [/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7ff740ff641d]] 6: [/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7ff7412c06ba]] 5: [./app/x86_64-native-linuxapp-gcc/pktgen(eal_thread_loop+0x1e1) [0x58e781]] 4: [./app/x86_64-native-linuxapp-gcc/pktgen(pktgen_launch_one_lcore+0xb7) [0x49fb47]] 3: [./app/x86_64-native-linuxapp-gcc/pktgen() [0x49e115]] 2: [./app/x86_64-native-linuxapp-gcc/pktgen(__rte_panic+0xc3) [0x4634fc]] 1: [./app/x86_64-native-linuxapp-gcc/pktgen(rte_dump_stack+0x2b) [0x594adb]] Aborted (core dumped) I use cmd below to run the pktgen: export DPDK_PARAMS="-c 0x19 --master-lcore 3 -m 512 --file-prefix pktgen --no-pci --vdev=net_virtio_user1,mac=00:00:00:00:00:01,path=/usr/local/var/run/openvswitch/vhost-user1 --vdev=net_virtio_user2,mac=00:00:00:00:00:02,path=/usr/local/var/run/openvswitch/vhost-user2 " export PKTGEN_PARAMS='-T -P -m "0.0,4.1"' sudo -E ./app/x86_64-native-linuxapp-gcc/pktgen $DPDK_PARAMS -- $PKTGEN_PARAMS As for ovs, I use cmd below to set up the virtual switch with vhost user port: sudo ./utilities/ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev sudo ./utilities/ovs-vsctl add-port br0 vhost-user1 -- set Interface vhost-user1 type=dpdkvhostuser sudo ./utilities/ovs-vsctl add-port br0 vhost-user2 -- set Interface vhost-user2 type=dpdkvhostuser Finally, I ran pktgen in the same ubuntu16.04 virtual machine which ovs run. I have no idea why this error occurs and cannot solve it, so I come to ask for your help. Many thanks, House