From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D6B9AA04DD for ; Mon, 26 Oct 2020 16:52:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 540F41E2B; Mon, 26 Oct 2020 16:52:29 +0100 (CET) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by dpdk.org (Postfix) with ESMTP id BC16D100C for ; Mon, 26 Oct 2020 16:52:26 +0100 (CET) Received: by mail-wm1-f48.google.com with SMTP id d78so12166267wmd.3 for ; Mon, 26 Oct 2020 08:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bJxp8rsGBN/eqopTaXoCvMS/11L8aipB/Kkid/3hSy4=; b=mqBVtZRE0T/tBGLqXXpwFo9xp+yyMqO6a6rW8v5RBcKSfWK8LGfIt7wAwG7Uj2Mrf1 Ugj0T2LMT4oPsg9RgdJccznwi7kQqZhzdqSLItbmRFtpgJ3F60b6bMpNUTf84PRyKt1y S9pdzRim7w1k+LgHJkCJdbdPDFYZ9+RwNGQI1uXvMyTspiqnclhZp01vhz229J12lfTT XeJmtZ1m1VlwAhyhkdSmLmEGL4shcFW3VxiQgQqgX8blOl/qYES3L6sTPkIa23iTOOQQ PjGBnMTvGCwVJVUVWsd5LkjB7cL7PUJVfa0RNeFM8mwZI5k2lxC5ueStzALeLu40x0Jm JYNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bJxp8rsGBN/eqopTaXoCvMS/11L8aipB/Kkid/3hSy4=; b=tJ9pCacMQa4i0PVd3fJDWlhus4r4YOFn/lwEszLtqL6VwpAAXPJv3mCv+dvM3S1KTA vfrA72GVsH5vdl1kSOteRdiTBWV84Av8UZX1t+2mNwCvTZPpDiBrxshvRoB0MCjlFrZP K3A7SKNFQV17qPmyUvKbz/bWgOeOzjx992eeB5pDr358H8PJMdM3+mM+7fGFF1ytx2ov W/9nHi14tnB/QuRN3m53s8rchpzU71oXtZcmHyW91qBTbfJAw7ulQVh6RfgzyLi3JJ6O aV2PiPD+v1pwPWSz70bcNndpJPcHn4EFfHdCYTXie8CeNIIgjqMJRhginfHxqyDAb4sD tdKg== X-Gm-Message-State: AOAM531AoMIyC5/rhjgwn6sM76D9GGR5fY7OAHf9hEjq+D9uXCZZkCFJ ZDlfTW0CJ2VbtzpjcnC9zWAtnne1XfN6EoSc9tQFwu/UytA= X-Google-Smtp-Source: ABdhPJzQ5WS4OeGSuiHS8qygzRH/ALOx3eZM3+bi4qQ3ycW7i4DURps87fSstmcRqPasJNmo3JcCQS85FSJFHO+Za2Y= X-Received: by 2002:a05:600c:d3:: with SMTP id u19mr16995269wmm.150.1603727545020; Mon, 26 Oct 2020 08:52:25 -0700 (PDT) MIME-Version: 1.0 From: Pavel Vazharov Date: Mon, 26 Oct 2020 17:52:12 +0200 Message-ID: To: users Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Queue same packet to multiple rte_rings X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi there, I'm wondering if I want to queue the same rte_mbuf to multiple rte_rings do I need to copy the packet (rte_pktmbuf_copy) or just bumping up the reference count (rte_pktmbuf_refcnt_update) before the queueing is enough? The rings are consumed by separate processes. Will the ref count work correctly across the processes and only the last process free the given rte_mbuf? Thanks, Pavel.