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 B1CE742220 for ; Fri, 1 Sep 2023 14:48:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E51840285; Fri, 1 Sep 2023 14:48:08 +0200 (CEST) Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) by mails.dpdk.org (Postfix) with ESMTP id 2B9A14014F for ; Fri, 1 Sep 2023 14:48:07 +0200 (CEST) Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-3a86a0355dfso1120773b6e.0 for ; Fri, 01 Sep 2023 05:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693572486; x=1694177286; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=FPC2CKHjVekviOyH3meOfqzHRYXodAet5/iwqw6d5pk=; b=kp4B8WOSaDFU9pnM/mC6f2hBkPt6t+ci7Cf6Pq87XlMDUTIQZdqjFQJQ7A+vlOcdHv jgN4I1dW4vFzZ1kS4BVkZekTpR4DepGhiecK4+yX+MaROdgMmFWEcb+qRtecjbhA2Gw6 73uQ0HfcBvUzKIunhRZzySwYu+XepfOWWl31OLCt5f3+/6XTd07T3sd9M6wEsrOKWemJ a6PIItR82xo2ZX+7bNA67h4u97WqfglFYyimO/MhLtA5tifHAzATL9Ng6MO3Gm93Gibs KUcWQ9FB+wkmMb2qGc4TkDy8ZroF6zfLkQKQvhQEjOw/aHHojXxHcdigl+vyGc6h4Jwk noTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693572486; x=1694177286; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=FPC2CKHjVekviOyH3meOfqzHRYXodAet5/iwqw6d5pk=; b=V88eMV8DcG4de0XPFjVJ/dBGrU3zIZOj1p6FmzLWDbTt67V58hgbmqimLOuueZWCxc WgwIsMfNCDyQTurkgMYKAk4EXr5IJrtAdCIKQ68ehmWvFepKUet/Ga/Ss7WJtXIFKlAU EA4zQ0ubBlNOJINMw7r/E7tMS989b4Uah1+9NuWg0n0XuiJL+YlP1m2E4hOrLibcktk9 XsHBHSnq8lg/ATaQ7v0qZJVWLGAMRPn7wMxogKB/3WZRDAcvILBr7l2Zzem82zvSX6kf fUp+2n46TtKKv7dp1bCEWKP+ejJowXmfuySea38ogxC951VOpQzedkRwnIiCJCAXZDDI UJgg== X-Gm-Message-State: AOJu0YwSXzGEqE4Hr1sc2k7njBiQmXj4bXM36iF0bgXkv8wBxiw8NUvu 1Lrr0jr8Bhq8N+x/frp6J6DGfdQeFHRsxDgstPhFdMqONSs= X-Google-Smtp-Source: AGHT+IE+KfNAE9Vj1ALOR6oeix74TP1vKKhHs2VDm1Z2O8xdq6xdm5QqsUweIJVLN14v8WrVV1tn0gIYPbJkG4K1HYU= X-Received: by 2002:a05:6808:9bb:b0:3a3:b39d:a8bf with SMTP id e27-20020a05680809bb00b003a3b39da8bfmr2073405oig.45.1693572486117; Fri, 01 Sep 2023 05:48:06 -0700 (PDT) MIME-Version: 1.0 From: omer yamac Date: Fri, 1 Sep 2023 15:47:54 +0300 Message-ID: Subject: Direct Mem Pool vs Indirect mem pool creation To: users@dpdk.org Content-Type: multipart/alternative; boundary="0000000000006fbfd606044b92c5" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --0000000000006fbfd606044b92c5 Content-Type: text/plain; charset="UTF-8" Hello, I need clarification while creating direct/indirect buffers for mbuf. I couldn't find exact documentation, and I just looked over the fragmentation test case and saw that two pools were created. One is a direct pool, and the other is an indirect pool. Here are the methods to create pools: direct_pool = rte_pktmbuf_pool_create("FRAG_D_MBUF_POOL", NUM_MBUFS, BURST, 0, RTE_MBUF_DEFAULT_BUF_SIZE, SOCKET_ID_ANY); indirect_pool = rte_pktmbuf_pool_create("FRAG_I_MBUF_POOL", NUM_MBUFS, BURST, 0, 0, SOCKET_ID_ANY) I couldn't see the exact difference. Just the "data_room_size" parameter is different. If this parameter is 0, then is the pool indirect? Thanks all --0000000000006fbfd606044b92c5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I need clarification while creating direct/i= ndirect buffers for mbuf. I couldn't find exact documentation, and I ju= st looked over the fragmentation test case and saw that two pools were crea= ted. One is a
direct pool, and the other is an indirect pool. Here are = the methods to create pools:
direct_pool =3D rte_pktmbuf_pool_create(&qu= ot;FRAG_D_MBUF_POOL",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 NUM_MBUFS, BURST, 0,
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 RTE_MBUF_DEFAULT_BUF_SIZE,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 SOCKET_ID_ANY);=
indirect_pool =3D rte_pktmbuf_pool_create("FRAG_I_MBUF_POOL",=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 NUM_MBUFS, BURST, 0,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0, SOCKET_ID_ANY)

I= couldn't see the exact difference. Just the "data_room_size"= parameter is different. If this parameter is 0, then is the pool indirect?=

Thanks all
--0000000000006fbfd606044b92c5--