From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stable-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id D3DB943F47
	for <public@inbox.dpdk.org>; Mon, 29 Apr 2024 17:33:49 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id C8736402A3;
	Mon, 29 Apr 2024 17:33:49 +0200 (CEST)
Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com
 [209.85.210.181])
 by mails.dpdk.org (Postfix) with ESMTP id 155964029C
 for <stable@dpdk.org>; Mon, 29 Apr 2024 17:33:49 +0200 (CEST)
Received: by mail-pf1-f181.google.com with SMTP id
 d2e1a72fcca58-6ecee1f325bso4141472b3a.2
 for <stable@dpdk.org>; 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=YgLOxbTeEG3v3V7Y97Ex0sy0qEyhXyViYN63RuY6xu9ccPSJVYViWxUDhuSeYRstXy
 gbsp3tx9praO+uDUwMvAADkmpsvgzFRluweQIHhvuoEKQP6AX/jFlh9JQ8x2n8C5tj5h
 X9kmMxi2YmvcFNchSQrOQseV5ea55PtVlaKGW/AqNDB2Gtrw1fDfqMkfh4FDBZfQPkuh
 CoiguX1QiRDrXd/vQeNmUt8PuHK9+3KDKFY9v/UgPopj3YhKVwQpaU12bXbp7+ZmpZ6K
 Z9hh00GXCOE8x/Qp882Xi2443gBd7EqNLlbiVFXPwrB/f34aHIo9ziZ0MG10hiF/XCLX
 KOrA==
X-Forwarded-Encrypted: i=1;
 AJvYcCVlcBPPK4qvfKJcD9rWleHjLyyGKiqPZSToVfmI4RsqmsjjzRrI+ZVCYM9eMy6W/Ccuv1qnNvFBfXSLKFs5OJE=
X-Gm-Message-State: AOJu0YxI35rmJhNl5whD49QtGMuf03B2entYHbkW3f8cIgiqDWOfAg1Q
 +vs5xY3U5Q8bREL+e5ozBQLGLBL9z2IAAQSQsvmiWLNX5sf02qEcDnY/5cDZqpA=
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 <stephen@networkplumber.org>
To: Morten =?UTF-8?B?QnLDuHJ1cA==?= <mb@smartsharesystems.com>
Cc: Mattias =?UTF-8?B?UsO2bm5ibG9t?= <hofors@lysator.liu.se>, "Ferruh Yigit"
 <ferruh.yigit@amd.com>, "Thomas Monjalon" <thomas@monjalon.net>, "Andrew
 Rybchenko" <andrew.rybchenko@oktetlabs.ru>, <dev@dpdk.org>,
 <stable@dpdk.org>, Mattias =?UTF-8?B?UsO2bm5ibG9t?=
 <mattias.ronnblom@ericsson.com>
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: stable@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
Errors-To: stable-bounces@dpdk.org

On Mon, 29 Apr 2024 08:20:13 +0200
Morten Br=C3=B8rup <mb@smartsharesystems.com> wrote:

> > turn talk the control plane, which in turn would talk to the data plane
> > (including <rte_ethdev.h>).
> >=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.