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 79E4EA0A02; Tue, 27 Apr 2021 16:22:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E2EB8411DC; Tue, 27 Apr 2021 16:22:53 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 60479411D5 for ; Tue, 27 Apr 2021 16:22:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619533371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NzRVMOtb7yFjPKLigSkoJJc3MnJETt191ySTtAmyZ+U=; b=U1nArcgjnBpSiOlcxnWKe8r5plW7gf6aj1iZ74FGCOHvny6d3hzkypE6t9VUkifkVMDhot mLtaic03BqY6YcCaPxjv0GJm+d2NsLlIy6GI9tY5BlUNObfzhNDkNEdw5dMJXT9ny4pnTs hlA1GKyO0njoLbExafQucKqihYGHQtQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-106-6nc2-5BgNGiImdrFZPEJkw-1; Tue, 27 Apr 2021 10:22:47 -0400 X-MC-Unique: 6nc2-5BgNGiImdrFZPEJkw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8457510054F6; Tue, 27 Apr 2021 14:22:45 +0000 (UTC) Received: from RHTPC1VM0NT (ovpn-115-135.rdu2.redhat.com [10.10.115.135]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2190169FD0; Tue, 27 Apr 2021 14:22:43 +0000 (UTC) From: Aaron Conole To: Olivier Matz Cc: dev@dpdk.org, Andrew Rybchenko , Pallantla Poornima , Wenwu Ma , Peng Zhihong , Thomas Monjalon References: <20210413200513.330399-1-wenwux.ma@intel.com> <20210427135646.871-1-olivier.matz@6wind.com> <20210427135646.871-2-olivier.matz@6wind.com> Date: Tue, 27 Apr 2021 10:22:43 -0400 In-Reply-To: <20210427135646.871-2-olivier.matz@6wind.com> (Olivier Matz's message of "Tue, 27 Apr 2021 15:56:46 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=aconole@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Subject: Re: [dpdk-dev] [PATCH v3 2/2] mbuf: better document usage of packet pool initializers 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 Sender: "dev" Olivier Matz writes: > Clarify that the mempool private initializer and object initializer used > for packet pools require that the mempool private size is large enough. > > Also add an assert (only enabled when -DRTE_ENABLE_ASSERT is passed) to > check this constraint. > > Signed-off-by: Olivier Matz > --- Acked-by: Aaron Conole