From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com [209.85.218.43]) by dpdk.org (Postfix) with ESMTP id 754F0B3FA for ; Wed, 18 May 2016 14:56:15 +0200 (CEST) Received: by mail-oi0-f43.google.com with SMTP id k142so74790464oib.1 for ; Wed, 18 May 2016 05:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to; bh=dpam1h4X8cYRO4w9l44yVzTC4C9xl41psIL9kk88IwA=; b=p0YOSsQaCLnCpCCNIxSAjaNiE0UA2CoeQsxnO/oerIQvJzxFkeu3QvaB0nI1tyn42a wW0ta8iJv4Q7L0cRL8TqrUFeZJgvy567TT0OoucIIIXdxz1mJrxMsnkscYq6sJ9s5Mov hLDcmbUgQfD87Orf4cgL8fkksNpqTLDngprHYMkHCeBTbKsdDX6QfBItrII69UYwLjse vIU0HeG5/DrrvK7C23j4XOFywxU9kvzx3iqOVk9VDeeTqLFGMRtP5jq2Q0G4dFviaMYl adFYtHKj+Ks9emLmNICiI5cP7YoCrjvsX6Q67VOxGDpSDgljdlvTRMFEMNIh0EwCwWW1 H4hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=dpam1h4X8cYRO4w9l44yVzTC4C9xl41psIL9kk88IwA=; b=HDL3rv+cOD6lclp4pB8LU7BEQ0CmGq/453Rwaq48HqizfO4yhRKiinkKQDuI+xSrr4 ZmGFmHRrSNQ1WMgFzxvQ9Y8LXzITCKQCq2iZ5v5EgJwcDmTCXMXbWh4tSkcEQhzxRety /dW+O4uVGCYMomKhEKJ/ks1Fouhpb6Thg906fuaufqJV5PbBI3w7D2yvYGVewqG9wbKb n4aAhAOfwkE9/lUl5JrJ5xg5Vq/lyolgo/pSX+FbhDK84m4tzNk18hcex6AUjaAmdSql MgxyXLelcYGTMiVgwneVhf447sQvWahKE3M4ogofU6YI5ziGaIzOYeh3hYaWJe5wNtfR 5rGg== X-Gm-Message-State: AOPr4FUHUOKMRoINolnw0jBzXbwyZuo7Sxzc7eCJdwYk7GRdlrz/64qFAEIjCezxK9Zzo1y/M1z11xGt/pvLpw== X-Received: by 10.157.59.183 with SMTP id k52mr4083280otc.1.1463576174832; Wed, 18 May 2016 05:56:14 -0700 (PDT) MIME-Version: 1.0 Sender: bsdasm@gmail.com Received: by 10.202.91.138 with HTTP; Wed, 18 May 2016 05:55:55 -0700 (PDT) From: ASM Date: Wed, 18 May 2016 15:55:55 +0300 X-Google-Sender-Auth: VuXgqfGwYUqRC_BBDRJwQ_q0el4 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 Subject: [dpdk-dev] rte_reorder_free_mbufs function for librte_reorder X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2016 12:56:15 -0000 Hi folks. I want to use stand alone rte_ring and rte_reorder library's. Without mempool. For rte_ring I can call rte_ring_get_memsize() function, alloc memory by self and use rte_ring. But reorder don't have rte_reorder_get_memsize. Struct rte_reorder_buffer is private. Furthermore, code have DRY (don't repeat yourself ) problem. For example: line 86: const unsigned int min_bufsize = sizeof(*b) + (2 * size * sizeof(struct rte_mbuf *)); line 132: const unsigned int bufsize = sizeof(struct rte_reorder_buffer) +(2 * size * sizeof(struct rte_mbuf *)); Is it possible to add rte_reorder_get_memsize for librte_reorder? Thanks. --- Best regards, Leonid Myravjev