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 D38F443D73; Fri, 29 Mar 2024 00:44:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DD5C40268; Fri, 29 Mar 2024 00:44:31 +0100 (CET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id ACAB140042 for ; Fri, 29 Mar 2024 00:44:30 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1e0d82c529fso14002715ad.2 for ; Thu, 28 Mar 2024 16:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1711669470; x=1712274270; 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=5RBHErMTk3HLiFEHxtQ/MXlEH9muv5Mu1KQXYP/cwHg=; b=hPBMuLAgaqTXPS96Vsf03zpHRleAOMRNQ8aGPEYBuiMZQEvdqWLl2oslUF1N4YXPY2 S/OUBa2Mn6rYNOf23cWQUsLyvWmov0/F5gL7ss2IOvkiLaZycIJpNq+q5OKALzWwkh47 BVscyixhEAWKIAmK7TmWgYr0z0zeFv3P4he+djvneN0trCZus3+Rkd4z1RkQtZknAJQA G4DaeqRxKq3j0FahdZ47cBBv8/hNO4fLx4psOB5V0HfMNfnZSitrniGJ4JjLK3R8WuYo G/4R+HTFAmCAJH7D6sXC3Rc7RHcpHj4l7oOcD8TqTZ5RAAUmPUlqXC3IDN+x9He9QYjn nwQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711669470; x=1712274270; 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=5RBHErMTk3HLiFEHxtQ/MXlEH9muv5Mu1KQXYP/cwHg=; b=Zb2E0XAjnRg4e/pO6p6LkaX1m69g7ZKfZYkAjVKXVcKHHIsyIduycZWK1aZSdMRdKT MAdTpiHGC2xEagj3iMtfoK/XoyY30EP2kXZmrAW1cDe3KkQ9op21keEhL9TfTgdr6nor TRwc5J9hUi/UhkTBmt4Oc4up4ZsFiWg7aoDekDnOg8SrJq1PD46H/L6cm6flYIxtdQA+ p5huOkjwItun5OCuQb+kTcnVXdvDJRtdfp4t+n/poVQwe19Madq7jC+ux3yuZTtQf5AE dyKYJQsnSDMZ/P180JBUrCF7+ei/cBO48FTVBudwoEAPcSsYiY5/Izp9iHVA0t5Ae01e xqSQ== X-Gm-Message-State: AOJu0YxV0sb9kgsvGbnQSA+DjKvyVRxiw2XsNi1Gzq2OygMkHxAtLywY DVD4Rl1EpNd900GB913QGP7H/+if0rQulvYPdw8n9WNdYKqGPc9mOjVt9HbcaGg= X-Google-Smtp-Source: AGHT+IHWFB/pfLIbhhY3kignaT/slVtQHEE/F3rJ6irwRj1P2m4rXCYW1cf5upKMifQD3DzKyz1Uyg== X-Received: by 2002:a17:902:a509:b0:1e0:4dfd:c121 with SMTP id s9-20020a170902a50900b001e04dfdc121mr765643plq.68.1711669468764; Thu, 28 Mar 2024 16:44:28 -0700 (PDT) Received: from hermes.local (204-195-123-203.wavecable.com. [204.195.123.203]) by smtp.gmail.com with ESMTPSA id kv7-20020a17090328c700b001e0d8fd208fsm2208363plb.291.2024.03.28.16.44.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 16:44:28 -0700 (PDT) Date: Thu, 28 Mar 2024 16:44:26 -0700 From: Stephen Hemminger To: Andrey Ignatov Cc: dev@dpdk.org, Maxime Coquelin , Chenbo Xia , Wei Shen Subject: Re: [PATCH] vhost: optimize mbuf allocation in virtio Tx packed path Message-ID: <20240328164426.5b600cd1@hermes.local> In-Reply-To: <20240328233338.56544-1-rdna@apple.com> References: <20240328233338.56544-1-rdna@apple.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 Thu, 28 Mar 2024 16:33:38 -0700 Andrey Ignatov wrote: > > +static __rte_always_inline uint16_t > +get_nb_avail_entries_packed(const struct vhost_virtqueue *__rte_restrict vq, > + uint16_t max_nb_avail_entries) > +{ You don't need always inline, the compiler will do it anyway.