From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C44DB43F47; Mon, 29 Apr 2024 17:33:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 15D86402B8; Mon, 29 Apr 2024 17:33:50 +0200 (CEST) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id 1C3B8402A3 for ; Mon, 29 Apr 2024 17:33:48 +0200 (CEST) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6f3e3d789cdso2672376b3a.1 for ; Mon, 29 Apr 2024 08:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1714404828; x=1715009628; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=8uRcfJ1Vlzt9n973YmMu91ZzCNc+wtm/bhmfvZkGFNo=; b=1eB55xsU6Tc01DLs72ZVpjKcI/2exZoXZnZhFnhXnef9f33pN762i5zJMvXJXIZlU4 VX4v+UB9QrSk582P1Jmvb76X1Z+YiWhasYz9a7njUN+Mt3gx1OsPUXhKGpca6eeK+Ako jbUFeu7/WBX0VzVP6wSG6u5M37Ayp3U4RRKwYamkB9/noTpDaMrM2lbwZ3x2grbxbBkV L5clR6X+fQuNuowCPah5xtEAK5s5lrhVO8777d69PUOaOBCjH0LSty96xXCohwVBVbf8 hpF9mK0bj1E/TJy2hnHwcwxF186PnTEFV/YQXwkFO9lc4teOQjmfb+1PxWBB2kkRQuwq pxMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714404828; x=1715009628; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8uRcfJ1Vlzt9n973YmMu91ZzCNc+wtm/bhmfvZkGFNo=; b=gZM89j6aHMH8Ao8OuYlDMzyPnexYtNoSFGo9Vxb8d/5YujxfjLtz/Mhd5uqKl8X69C it91wfAOaFmk1M93hizFJ47cwuKpI0cTA26+hNGn0eSdVlQrETu7JwbWjcWAIeYcYHIN mu2x5Z1/FgiAqxITsYH4n1ZjT3RZOxxFChI0vovWPVtunimIpoOilp5AxchOsN3Hl3Ku Tk5r6kh6+vrf/ipsoW2PMw41OKSqVxBty9G0f1mRctvDDX5bWbZmvonrhNc9c7MBGSqI fgvEp3ecEt2+kbpTRpor9B1SEPplXw1aVhZeFP6CgKt/YIWz2fd5Hu/3bnwAy92F5S9S YpkQ== X-Forwarded-Encrypted: i=1; AJvYcCUySxW05KEipO9zeZdfei+z6LhDA/fozglh4l3WH2XtyudlFYLmmAGbKdKAnCkclgbSv42FTOJ0ksOxoDM= X-Gm-Message-State: AOJu0YyEWHX/Cvgf8t9ggwIfIlLGxQtss/iMyPRuYBAEI/cAKdWTisZp m+xbjUpA38fI8VT8CQcnJoCDJI7v9LhCb1L0fhF+hq9pJjP0vAKij0U15EKSebQ= X-Google-Smtp-Source: AGHT+IHSMssl/+z7OC055Iw6+pzirX+b8xdL17vkadoSsjDy4sG+IIj7b3ZGmrWMG6HdM1YMgO7pFg== X-Received: by 2002:a05:6a20:dc95:b0:1a9:86dd:177b with SMTP id ky21-20020a056a20dc9500b001a986dd177bmr12135699pzb.44.1714404827963; Mon, 29 Apr 2024 08:33:47 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id fe12-20020a056a002f0c00b006ea918dab9csm19369602pfb.157.2024.04.29.08.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:33:47 -0700 (PDT) Date: Mon, 29 Apr 2024 08:33:45 -0700 From: Stephen Hemminger To: Morten =?UTF-8?B?QnLDuHJ1cA==?= Cc: Mattias =?UTF-8?B?UsO2bm5ibG9t?= , "Ferruh Yigit" , "Thomas Monjalon" , "Andrew Rybchenko" , , , Mattias =?UTF-8?B?UsO2bm5ibG9t?= Subject: Re: [PATCH] ethdev: document that stats reset APIs are not thread-safe Message-ID: <20240429083345.4a2be5af@hermes.local> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9F3FF@smartserver.smartshare.dk> References: <20240425165308.1078454-1-ferruh.yigit@amd.com> <98CBD80474FA8B44BF855DF32C47DC35E9F3F7@smartserver.smartshare.dk> <20240426081334.1a24577d@hermes.local> <98CBD80474FA8B44BF855DF32C47DC35E9F3FA@smartserver.smartshare.dk> <1a65e90a-a54b-4584-bc00-a568d7c11f78@lysator.liu.se> <98CBD80474FA8B44BF855DF32C47DC35E9F3FF@smartserver.smartshare.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, 29 Apr 2024 08:20:13 +0200 Morten Br=C3=B8rup wrote: > > turn talk the control plane, which in turn would talk to the data plane > > (including ). > >=20 > > Either the control plane or the O&M layer could keep track of a reset > > offset. Doesn't have to be on the PMD level. =20 >=20 > Exactly. >=20 > Snapshotting the "reset" offset in the control plane has many advantages. >=20 > Let's promote that design pattern, rather than trying to work around diff= erent quirks required by different drivers. >=20 The other thing that can help in software drivers is keeping per-queue stat= s.