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 16772A0562 for ; Tue, 31 Mar 2020 11:47:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DAF532BCE; Tue, 31 Mar 2020 11:47:16 +0200 (CEST) Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by dpdk.org (Postfix) with ESMTP id 6382E2BCE for ; Tue, 31 Mar 2020 11:47:16 +0200 (CEST) Received: by mail-ed1-f66.google.com with SMTP id bd14so24270660edb.10 for ; Tue, 31 Mar 2020 02:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4aq23Y/uOtestjn6yy6DBRs9yjFD9lwyc2VxpirDdxI=; b=pCW4VrN7v1y+5VxYCPgHag7utPzr6ibKF1Gw+BpWLEREtLy0rY1MkjjCdEGH+Gj3n8 3Q+BS+o82mdW3krU3SDgrW8RP0tVJEDisEpvMDXwa9hqcOnJxRosDUN3D7tpAnNYAO+h HH16o5tUoYHg9k/CXsFXF8AQKC7F8mAai3skB8AAmUFXeD1Rd8Y+KIADSYqsnrvc6f4P Awul6d7SHovinbS++VWxwdDBYrP+RJBV5PhrVnTiM2NUIz3twG6mIAlgW5AftPNbSvg8 e31FiB9uLRcMVJrcr/KmzN5sF+dBlAIvPo/61lyOI1COe/GEPZ5sn5QUP7Z70/iv3IsU VduA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4aq23Y/uOtestjn6yy6DBRs9yjFD9lwyc2VxpirDdxI=; b=RkaX2AjKl7m0J5dfzq1sr5sVwIof+x0aV3ebHzvjh0GMbAndS3+PB6jUOrk4uigw7B ll40mQ1fxSR6SkwuUnOIbQUqNp2mzRYXAzZIjJbUN0/qRqrxKIPTS93XRugFTFpjCgDl e1CNyZm+s+QsnuE4gzWdDo+GCLrrqyRn82G91kE3sJTKwKomgcQms8Z8ljRehq02fkJV 92gFXTDT5wkMh9j6w4Tmq6CiRh2mO319BdVd8kk+/kcMa/YBlp5GmQ4fbjWuoLvhPiUa pdM74WN9lT9dbB4I/qobqQEmNtnYaqF7rQKX95EMQcRgJv+ZuiwWfWNLtPgbXxXd/9jt 514A== X-Gm-Message-State: ANhLgQ35yDwbbhLcp/v2AeXGgO4B4KB7A2Bb1iEmE5rpC2UDXptXx/g8 rqSo70za6z8AGmsjHwM4q+LCnnle/+rHpqzxEhtpHg== X-Google-Smtp-Source: ADFU+vsk90bGrTvOYnitXpURcUKbG/f4QYbYp+Ly0gOQZaKEEUvXTddgLQEXRoQMOseLckGckp9hI2HmV24mZ7p0h50= X-Received: by 2002:a17:906:1584:: with SMTP id k4mr15102491ejd.355.1585648036125; Tue, 31 Mar 2020 02:47:16 -0700 (PDT) MIME-Version: 1.0 References: <20200327101823.12646-1-mk@semihalf.com> <20200327101823.12646-3-mk@semihalf.com> <20200327075448.417ef984@hermes.lan> In-Reply-To: <20200327075448.417ef984@hermes.lan> From: =?UTF-8?Q?Micha=C5=82_Krawczyk?= Date: Tue, 31 Mar 2020 11:47:04 +0200 Message-ID: To: Stephen Hemminger Cc: dev@dpdk.org, Marcin Wojtas , Maciej Bielski , "Tzalik, Guy" , "Schmeilin, Evgeny" , "Chauskin, Igor" , stable@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH 02/29] net/ena/base: make allocation macros thread-safe X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" pt., 27 mar 2020 o 15:54 Stephen Hemminger napisa=C5=82(a): > > On Fri, 27 Mar 2020 11:17:56 +0100 > Michal Krawczyk wrote: > > > From: Igor Chauskin > > > > Memory allocation region id could possibly be non-unique > > due to non-atomic increment, causing allocation failure. > > > > Fixes: 9ba7981ec992 ("ena: add communication layer for DPDK") > > Cc: stable@dpdk.org > > > > Signed-off-by: Igor Chauskin > > Reviewed-by: Michal Krawczyk > > Reviewed-by: Guy Tzalik > > With DPDK all control operations are the device are supposed > to be single threaded by the caller. Do you have an allocation in > some datapath? Currently, there aren't any allocations on the datapath. But if you don't mind, we would like to keep the atomics there for future robustness.