From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) by dpdk.org (Postfix) with ESMTP id 6215B1C086 for ; Thu, 12 Apr 2018 16:00:18 +0200 (CEST) Received: by mail-it0-f41.google.com with SMTP id 71-v6so7162340ith.2 for ; Thu, 12 Apr 2018 07:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=dBoQlDJq6WnjFy188AvMY5aM+ggpN/I/vX3UQi6yH8o=; b=q3ErNTRR3cCDICNLEcXo5j7DFX/yLe2MifKhQw9Ghqu48goCzYge18CvgT9KyjkkHF ixDZw0g4pdgqmALic0i6+9jGHdZhpLG7REZl/l4vdCDFctG+JT8g9lcqAt9sx4XP4B2d tPG5IlLPjExMiXIGN0uzDYuSWoh2iOww6Ho82rqAVAZRdGSJCQJU2EZeGedIl+NAaOpC bVy7NiGHLIfyxAY2vuMrGaKrRiqKn2TTNvML+tUh8bXEktwo7cb6lUT4PbIveUxylQHi mlQpuJofTT2Zjc7qEDqCuOcQH2Tmv52tNpru5Pup241b13BYEJEm2XIJpuzccp6c0132 srmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=dBoQlDJq6WnjFy188AvMY5aM+ggpN/I/vX3UQi6yH8o=; b=QreAO/PY0wrwYKd5hvDGTBmsWk6z1rUfpgC4C3V2D2OLmZ2iFnXvNatP/cqhngELCj t0o7XFPnLCBzsSoXiNBu46B03nPIKy2vG44tHiyGpj4J/0zIZ+v4CNlleC4Ja8TG1xV2 kNA6vDda6JhB42PbF0w3mEOMMtCaZ5M+r33Id91zdQW5SJtRam9Z/4+aSHO7z4e3CDcE 1Wvn/aYIgkI81O48v2sClWvB3Jh8YcTyFLG3XJqi6V0IY5rNoxyvjrGgdWlgcJfzm3h5 sddt7I/KDJZ85YytUgBwb9NvqhmyX5FuEuaJ3S3iKR1CDjEGsKMS4w00hzjchT5jpIH+ ZXBQ== X-Gm-Message-State: ALQs6tBvg1d3IZD8/+a9nGnS7nxgvZ1Xe0fWrLPMVgovf03OXs7p24u/ USyM84kf7rgChCwC/JgwC9IzETErDfMW20cncmU= X-Google-Smtp-Source: AIpwx48dmc6pgZZ8WWWfjI6T6XkoN7ss/7r/zi5+Nvty8EANb5hwaEy5Aj/Yu72to7uMn26hKk5OXXHgK7Hwt3M/RNw= X-Received: by 2002:a24:700d:: with SMTP id f13-v6mr693612itc.2.1523541617480; Thu, 12 Apr 2018 07:00:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.192.241.129 with HTTP; Thu, 12 Apr 2018 06:59:46 -0700 (PDT) In-Reply-To: References: From: James Bensley Date: Thu, 12 Apr 2018 14:59:46 +0100 Message-ID: To: Dan Brown , users@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-users] Setup pktgen as a receiver 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: , X-List-Received-Date: Thu, 12 Apr 2018 14:00:18 -0000 On 12 April 2018 at 13:32, Dan Brown wrote: > I'm trying to run 2 pktgen instances, on two separate VMs, one act as a > generator and the other act as the a receiver. > > TX is OK, but for some reason the intended RX pktgen seem to receive no > packets (RX counters are zero). > > With no pktgen/dpdk, both RX and TX interfaces can communicate properly (so > no network infrastructure level issue I suppose). > > The cmd I use to init both ends is: > './app/x86_64-native-linuxapp-gcc/pktgen -c 0x7 -n 1 -- -T -P -m "[1:2].0"' > > Then 'start 0' on the TX instance. > > Is there anything else I should execute on the RX instance for it to start > receiving packets? > > Some more infrastructure details: > - Both interface are Intel SR-IOV VFs > - Hypervisor is VMware ESXi 6.5 > - SR-IOV vSwitches are configured to allow promiscuous mode. > - Ubuntu 16.04 Guest OSs > - DPDK 18.02, pktgen 3.4.9 Hi Dan, Are these two devices in the same layer 2 broadcast domain / layer 3 subnet as each other? When I use two devices in different subnets I have to first send some gratuitous ARP frames so that the gateway can find the two Pktgen hosts: set 0 src ip 10.0.1.1/30 # Gateway device is 10.0.1.2 set 0 dst ip 10.0.2.1 set 0 dst mac a8:0c:0d:7b:f6:e5 # MAC of gateway device set 1 src ip 10.0.2.1/30 # Gateway device is 10.0.2.2 set 1 dst ip 10.0.1.1 set 1 dst mac a8:0c:0d:7b:f6:e4 # MAC of gateway device start 0,1 arp gratuitous start 0,1 arp gratuitous start 0 Cheers, James.