From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E9BB2A0525 for ; Wed, 22 Jan 2020 06:13:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 62C972AA0; Wed, 22 Jan 2020 06:13:19 +0100 (CET) Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) by dpdk.org (Postfix) with ESMTP id 81C9A2A62 for ; Wed, 22 Jan 2020 06:13:17 +0100 (CET) Received: by mail-qv1-f54.google.com with SMTP id u10so2686065qvi.2 for ; Tue, 21 Jan 2020 21:13:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:autocrypt:message-id:date :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=TpeEmgVt3NZxno32I63xVsLtvlvNAtNvqW9ZH0bN5XM=; b=Tp4PStK6mjOxtWxTMGji4ACmi5cu1N+k5ADTQwU/Yqgj9b99iPipqlkr4z6Fr6B5oi 2Eg7NrD5cCqWqLpadKu3mkQ/GpjdyH08DaiwlHtjvK7JRQhRPpEYiquubpR+RdpmY4zU z1PVZWzMCX6MuYWKTsctgoPx6vHsE5ftj44cXfLZBBR981jVcTUQJc39mKH8k5jP7dj5 TB2pw+bj1NFsbFFih4sssby7/lrUwwT36UKW2ybjoEPfkHrx4hoAGteQ5WM6e7gACq9P vqbi0uSaS8ab+Chcg7essJ6+3Ki6HjhuEvjjP5v3EkhsQ6Ke2NIS2rKU/GRpzhMzcTBf qAQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=TpeEmgVt3NZxno32I63xVsLtvlvNAtNvqW9ZH0bN5XM=; b=s+J2kwPW5L9Nfa3pYNtkPjQ5tW782uakd3YSZukv5eTUVGl56sA3wVGAAm+sWvEfC1 tjTsKwqhN19j3oD0NLpbuMSnsZRRINlcZuu8Dpny9i9slYeqQnVQazV6pNo3sCVAkpi+ Cg+HirqZrnD9Kv+xTYrfhnlO4T0lO2fUtpXRftninw8iJsh1/n6IQ8xXn3qYaX1W9TqF XKche9q2HDz3m54WrxFo7/Peoib5Wvfrde9nzvP2XQ8YiYTGeRFAT74duSZkmJmmDbC8 hs79c7b0oT0SsTVbn1LXIx7abBW6TOQ3CXgQ11RRSRR0Fs7A9kNpkjHuGhP8j4z1wZaR sm0w== X-Gm-Message-State: APjAAAXzEFo+PjLZwUPgH6ZTEst41MRu/0E1wyJ6G0zZ15XxLIJV33EN 2M/PNeuD1LRn8GB1kMN4ReBpNUfJ X-Google-Smtp-Source: APXvYqxOi6xD+XRhFwe0YiE5HMk8flNeNkxSZ/mNmOKUCRUN0mFVqjPjO5v2r89JZSRuqYXo4i2VVQ== X-Received: by 2002:ad4:59c2:: with SMTP id el2mr8300818qvb.152.1579669996570; Tue, 21 Jan 2020 21:13:16 -0800 (PST) Received: from [192.168.1.5] (pool-71-182-232-12.pitbpa.fios.verizon.net. [71.182.232.12]) by smtp.googlemail.com with ESMTPSA id m54sm930783qtf.67.2020.01.21.21.13.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jan 2020 21:13:16 -0800 (PST) To: Muhammad Zain-ul-Abideen Cc: users References: From: Dominic Chen Autocrypt: addr=d.c.ddcc@gmail.com; prefer-encrypt=mutual; keydata= mQENBFbtu7sBCAC7ru9QmXnDTLz717MCDXn7pFPCFAEFsA7ryeU6CkztMi10bd910sHIIOkn Vr/qWNywDIZ/PO1bGQ+muVYXuT7XN3NQ3ei1+jIn/+VWkCSyVqDrwfF4E0egPqvrnYG20KIC sRkNrQQ+Sa64K2a0VVI2oamLWOsnAz7R9M7+ftpWYU4S7288ZNOVxFc8vxXUxPvn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JX5Fi8BeowUkuZrGzDN5RV pXK7H3Xj9zsQ8HgJBKe5xjNEiXNwWgf+KmpCWQfcgiOah59Mk6x8dzv/2EWX18pN/EykwNxL 2uIOlG6LDK177xHSDV/04vb/ZwE24o6Lk0AhdPn2xh49CuJUeBzxF5KlH4ti1bzK3AWlzhs9 91YXcN7kZo+I3Uu3rw0nrynPuV4lRc7rSAc9akRPRDuMNJduAgDJKItZ7w1J0T4fHH0XN8Gf DTDxh/mc/qWFOsEJwe6CpiAZRhVXKzKPp7YuPKzj8XmaWaKf8dgQLYduFxMrSGLNRZP4OHoD CSatCSZbMTQW/P6vFKuCeHpkriI75pCa9YYB1m9Za33D5iMstqJ+j8J/5evaL4Pz7krTGowD SP1d4L0/7aR4qw== Message-ID: Date: Wed, 22 Jan 2020 00:13:17 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [dpdk-users] Same port receive/transmit loopback 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" I've verified with testpmd that the connection works. Since I'm in a virtual machine, I don't have a physical cable to loopback, so I added more virtual NICs and bridged them externally. I've also submitted a patch to the e1000 driver to add support for loopback mode. I don't have the physical hardware, so I can only verify that it works in QEMU with e1000 and e1000e. Dominic On 1/21/2020 12:47 AM, Muhammad Zain-ul-Abideen wrote: > Hey there, have you used packetgen to verify. Build pktgen app and > loopback your cable to recieve what you send on the port to verify please > > On Tue, Jan 21, 2020, 3:34 AM Dominic Chen > wrote: > > I've just started working with DPDK recently, and I'm a little > confused > by the intended behavior when transmitting and receiving on the > same port. > > Currently, I haven't been able to receive the same packet that I > transmitted, regardless of the source/destination MACs on the Ethernet > packet (broadcast, self, etc), or whether the port is in promiscuous > mode. I've verified from other hosts on the network that my > packets are > being sent, that I am able to receive packets (as long as I didn't > send > them), and that I get the same behavior when using vfio-pci with both > e1000 and vmxnet3 (emulated in VMware). > > Is there some built-in source MAC filtering that I'm missing? Or do I > have to enable loopback mode? > > Thanks, > > Dominic > >