From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <zoltan.kiss@linaro.org>
Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43])
 by dpdk.org (Postfix) with ESMTP id 5C6D4568D
 for <dev@dpdk.org>; Fri, 15 Jan 2016 17:54:11 +0100 (CET)
Received: by mail-wm0-f43.google.com with SMTP id f206so28017730wmf.0
 for <dev@dpdk.org>; Fri, 15 Jan 2016 08:54:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;
 h=to:from:subject:message-id:date:user-agent:mime-version
 :content-type:content-transfer-encoding;
 bh=UsOUhzOch77fuecf3thj4QeqEeYwjAjIFR2hb2tlmlg=;
 b=h1hNot73MVJi6kkZmcpZQzJQv5qxzUTA6wCJigpklmDtKNSxVGPa9nuMvj29KB1E/r
 SxxpCT76eAL3nqhrfzvmEqzS0ysThB/pFRg6EpFUuo51pMztQKx1RraGs7RLZbXG37Pn
 Vt3ZFMWUVBj13d68wf9RcSpPzA/ON4ThLZSsA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:to:from:subject:message-id:date:user-agent
 :mime-version:content-type:content-transfer-encoding;
 bh=UsOUhzOch77fuecf3thj4QeqEeYwjAjIFR2hb2tlmlg=;
 b=JDnlc9XaDAmtLq/ZH2c50FVaxL+Hcfz/n/DIT/RijHjOXiQ1sfRjGgDThU4IdUx7Az
 cizWnNJ0hQoYJHpXdt5KbOmIxhVeMYoe2/b/tu7EhFJG5bQ0nuJO6t14v1KOm1lRnNFZ
 A7/fOBO/bUWqv/DdNAVGEseWvdI0wI1bruXVRPuObE4hRI7dckO3yEiT4ppNIS5JjmAr
 n1zu6asjHWOa12D+7DC8vX+DTttEIJQQoKe+IBUoh9dZVhnRZtP/nYRi/pdxP2dicemX
 10g/vK2vMe9xj7P/TEb5HLXHyEOPcIl+5RL9y5SrFrV0IWhe+VyFMqrkcIbIV5Tzmh/e
 5LiA==
X-Gm-Message-State: AG10YORGv/0eM/fjoLkEIIdkBJVSfKskfoaGqGwvH+ZNO7s6lJr3h1btfZDe3esZ59x9HRfv
X-Received: by 10.28.14.138 with SMTP id 132mr4186217wmo.25.1452876851182;
 Fri, 15 Jan 2016 08:54:11 -0800 (PST)
Received: from [172.18.45.59] ([195.11.233.227])
 by smtp.googlemail.com with ESMTPSA id q129sm3328523wmd.14.2016.01.15.08.54.10
 for <dev@dpdk.org> (version=TLSv1/SSLv3 cipher=OTHER);
 Fri, 15 Jan 2016 08:54:10 -0800 (PST)
To: dev@dpdk.org
From: Zoltan Kiss <zoltan.kiss@linaro.org>
Message-ID: <56992433.7060206@linaro.org>
Date: Fri, 15 Jan 2016 16:54:11 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.5.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [dpdk-dev] Sending and receiving on the same port at the same time,
 from different threads
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 15 Jan 2016 16:54:11 -0000

Hi,

I've been asked this question, and I realized I'm not sure about the 
answer. In other words: can you call rte_eth_tx_burst() and 
rte_eth_tx_burst() on the same port at the same time from different 
threads? In theory it seems possible, as you still access different 
queues (an RX and a TX one), and at least taking a glance at ixgbe 
vector functions, they don't seem to use common resources while doing RX 
or TX. But I'm not sure that it's generally true, although I always 
assumed that it should be true. Have anyone seen a device where it 
wasn't true?

Regards,

Zoltan