From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by dpdk.org (Postfix) with ESMTP id 812DF1C161 for ; Thu, 12 Apr 2018 19:40:12 +0200 (CEST) Received: by mail-lf0-f45.google.com with SMTP id o102-v6so8875569lfg.8 for ; Thu, 12 Apr 2018 10:40:12 -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 :cc; bh=OCntk6LQQDerNVmU6BYJrVAayA0c+5VI6SblTzHMqhw=; b=uBadeTyHqgA5Su2+tgTXyWwBwlmLdmmCtIq8fkTchyiDI0iYJp+jGr10kw2Y0fBNEx 2bn1Sakxk++2J0YFffzjIQbI05kFgf+/xrN8rZZ5acVJYGDFwmNRCvp6r6Lx+nS5gtQp RQDn0nnCD09XEl97dz1Po3fs4weJA6SOJ/+9Nf6XA3K9EPzM5KmFL9n77eGGU9Nl+E56 hbBq+BNOtnI5wluFLXPWm0VNZ/izUQn7ld1wmj/XIvtPjlyv73FRHGV+wNpl1qfQ3WgP sxX9DGPRhJwPQnsYAsRTaGcdUTH66kyjyGZ8Cacy/xUdnOAWbus9w3iBdw+zN+kO8udY uAZA== 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:cc; bh=OCntk6LQQDerNVmU6BYJrVAayA0c+5VI6SblTzHMqhw=; b=buaoAUko1PaJN211kG+ryvhridMVu8ZUGSyIXzpPZOf9vGxJvwG5Rdzo+Np7hD/Tcr O6uhT5+FweyCpVgHHRyL0dHTeZNxXktZnTwIYkMUtJDB+VUETRnSST9TjZisBY8ocyF8 vDNKQ+60mld/gY93Mka2HE64vtravxQKSoRkojosQ54D2UH3LMCIzxZJ9EqPPQcoDzyb DMzVHntOV0OiToJerv/nOpTvKrKFX/V/rmURRpt3rwvkcvNnPI6nMKG0CE4969iYm5i+ gpwh6nnPdZZHKXNYiJzGXZ4iFmZioFQ8fXDPRl7o2P6wbKLUjfEFJ5vMRHzPoxESowgx od9g== X-Gm-Message-State: ALQs6tCgiu1D/9OVfYcEjJyTAKNdnky9NjB18hfU9ndkTJa9+DZBHh9A axGe/2LMq7rBteNq2QsUQPHfoapDN1kUaoyOQJy5aA== X-Google-Smtp-Source: AIpwx4+rTaxpRellztNk60490lNt6lw40LhMWQ0FT8TPm53aCKqq8pkrsR8LjogZb2RswNnatYj5VOrG75Fy/yuqQPg= X-Received: by 2002:a19:5386:: with SMTP id h6-v6mr6335009lfl.116.1523554811916; Thu, 12 Apr 2018 10:40:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.75.26 with HTTP; Thu, 12 Apr 2018 10:40:11 -0700 (PDT) In-Reply-To: References: From: Dan Brown Date: Thu, 12 Apr 2018 20:40:11 +0300 Message-ID: To: James Bensley Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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 17:40:12 -0000 Thanks James. That indeed solved the problem. On Thu, Apr 12, 2018 at 4:59 PM, James Bensley wrote: > 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. >