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 EE3CB43191; Wed, 18 Oct 2023 01:55:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C9A4340261; Wed, 18 Oct 2023 01:55:26 +0200 (CEST) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mails.dpdk.org (Postfix) with ESMTP id B8F8F4025F for ; Wed, 18 Oct 2023 01:55:25 +0200 (CEST) Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-5ab2cb900fcso2896974a12.0 for ; Tue, 17 Oct 2023 16:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1697586925; x=1698191725; 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=lkPmGFd6/gTjGiVeDb7y3ZUx6vdKtjm4J07txLNQD5o=; b=wjoCsOi9B00roazvViKjUD1fJWe9VgFPnb3Irjbs67LGPbqKdiyaDmPQ2u2wcNZkKC csP6+xooIslRqLCk8cIopE0Bh5zQ6fug5Sitm2St24pW3BiqpOiouOFGt+jVezw8Ne0S GE2MtKB1jRA4rGoU+KH6nm3mMv47E2cN6YL5N8MQKPlpwYGJVUIyNJr2toF8dLZbplTf E2ErBwZ/5YE0Cmt2ZmY82o4mZH8xEqsSGNsvF/y0Z3be+wMXrgJEpxzXz4ZMoYOpoesk uwXsyyWVWb9LGvEhgUy27tf1fVYjFE1Rl4mY+nDKgOeILeBI4a9Xs9WAKcx7uJut6mFj KhJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697586925; x=1698191725; 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=lkPmGFd6/gTjGiVeDb7y3ZUx6vdKtjm4J07txLNQD5o=; b=FF1ORWtuFJuYQk61E5YVW4mQSbVaRMS1TbZwenT4k7axzp7sDfYUaqdBA+mINIPZvQ B9bTcXbbYC6BWVXwigja+r4lx+r3NhBEV3/zwhgRMaZWfdD9aij94QBwC5n2Wcf4WkaZ RMfRdisiTnYGxkUvgpITTyINbj0bnnub6zmO1YLL6pf1YP5e3SFxuxgLdCw3eDMb9R5e toOuVR4DHK/1HdWsJvV5mWQLEn4IeGKbhmhWlasD96b34VD9Td/qcdZz3+MYR3/KQNnN YeAqZpHXsIRChKaWZRBYGEAIzxnH6WTBaqhApq0BrbTmJRBc/pSNvYe0PHozU7J0ZWJ7 PDhQ== X-Gm-Message-State: AOJu0YzBsCQjasHMSv5RvfF2g9AVFKT0ULfJOcUU5/Fjhbf1GHHo09Kb F2Esl8+4S4BPO7dlg1UwKihM1A== X-Google-Smtp-Source: AGHT+IEmP1colmNSpUsQCb42Ok7GC+Ud6IMd5RaulCvXqfcWWuzYjxrxvRSye/P0HyQsDCpZf5hKyw== X-Received: by 2002:a05:6a21:4982:b0:152:be08:b013 with SMTP id ax2-20020a056a21498200b00152be08b013mr3411390pzc.42.1697586924754; Tue, 17 Oct 2023 16:55:24 -0700 (PDT) Received: from hermes.local (204-195-126-68.wavecable.com. [204.195.126.68]) by smtp.gmail.com with ESMTPSA id k12-20020a17090aaa0c00b00263b9e75aecsm88942pjq.41.2023.10.17.16.55.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 16:55:24 -0700 (PDT) Date: Tue, 17 Oct 2023 16:55:22 -0700 From: Stephen Hemminger To: Tyler Retzlaff Cc: dev@dpdk.org, Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chenbo Xia , Ciara Power , David Christensen , David Hunt , Dmitry Kozlyuk , Dmitry Malloy , Elena Agostini , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Harry van Haaren , Honnappa Nagarahalli , Jerin Jacob , Konstantin Ananyev , Matan Azrad , Maxime Coquelin , Narcisa Ana Maria Vasile , Nicolas Chautru , Olivier Matz , Ori Kam , Pallavi Kadam , Pavan Nikhilesh , Reshma Pattan , Sameh Gobriel , Shijith Thotton , Sivaprasad Tummala , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang Subject: Re: [PATCH v2 00/19] use rte optional stdatomic API Message-ID: <20231017165522.6de53ab2@hermes.local> In-Reply-To: <1697574677-16578-1-git-send-email-roretzla@linux.microsoft.com> References: <1697497745-20664-1-git-send-email-roretzla@linux.microsoft.com> <1697574677-16578-1-git-send-email-roretzla@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Tue, 17 Oct 2023 13:30:58 -0700 Tyler Retzlaff wrote: > Replace the use of gcc builtin __atomic_xxx intrinsics with > corresponding rte_atomic_xxx optional stdatomic API. > > v2: > * add #include to rte_mbuf_core.h > * remove first two patches which were fixes that have > been merged in another series Looks good. It does look like lots of places are doing per-cpu statistics and maybe a set of helpers for that would make it simpler. Linux has percpu_counter_XXX helpers and NET_INC_STATS() macro.