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 B985F41EB1 for ; Thu, 16 Mar 2023 16:55:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A9FFD42D64; Thu, 16 Mar 2023 16:55:57 +0100 (CET) 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 D0C5A40DF6 for ; Thu, 16 Mar 2023 16:55:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678982154; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Rak3/N2eIxF3UfDsP0SXRtBOGXIl7J59QE7sI4ePgcg=; b=LyCQoHx/e/vgOD5zoTZiJdeNPMyrltx3PcGz1o1J49qmEJfAbvJs7Uz2ClpTFatz+mZp2s aEjuY9CEVmYHnC/VKSdUIuQQGY3NZu/Pzc4lOm4Ud1oSCogM1/ksWqwWNLraWgj2z9T60n L2RMhyanGRn+7AYGxtH5js5TXpWGelM= Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-322-9tbuRu55NBWruJ8cH23UQw-1; Thu, 16 Mar 2023 11:55:53 -0400 X-MC-Unique: 9tbuRu55NBWruJ8cH23UQw-1 Received: by mail-pf1-f197.google.com with SMTP id a17-20020a056a001d1100b00625760338c5so1324058pfx.14 for ; Thu, 16 Mar 2023 08:55:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678982152; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rak3/N2eIxF3UfDsP0SXRtBOGXIl7J59QE7sI4ePgcg=; b=H9+TvAICBVJ3uvjk1F6Jc8D4SCNGXRgH22M1QE2Wvbj+wXF+oVyKYdxc2VH50IKk9i DHq5VK4WW72vUPkZ+Y9hpJUuRP3xnSt0Y4trIxl7VrFVEya82XGiQypvZLfQW+JW5sPw 8PGuTCG6uo3vqKLh4cfXaNFj/BSRKNp93u3tGfTSbGoe3u/TM7T5kXkmoHUxYVpfTpHp sYE2rS5vT+393dLnra3HHTRbcMtNYCPtOyhWpnwH9gy3x72m978RKRUC3LYbd5bFGWcD 9e3ElgTlHSPTJSxzMdTL8bYdYa+gdti3+falBsN5Ihk35y4Gvh2dkh8g6PySzlYSGND+ BTUw== X-Gm-Message-State: AO0yUKU+YTWrQwWvJX2ZXNg+5T/gZcHxhOqP/Tu2ow86Kj5R8f2VFM5G dGs+8i+MEU4BDsLeYnulSpUsmW278Rt+WLHpPnFHrkOZUTWgGljTlL0K7GuWBwPL1VHjM5JZBey rkDvs8Y+puQ+TOdla2qqMRGk= X-Received: by 2002:a65:438d:0:b0:50b:e523:3cd2 with SMTP id m13-20020a65438d000000b0050be5233cd2mr996048pgp.11.1678982152286; Thu, 16 Mar 2023 08:55:52 -0700 (PDT) X-Google-Smtp-Source: AK7set/ngIsJ9w8PaE27VCSbGB06R8f/bvjmuw1wsCDdQIOHnfyehgR/VVDbFluCR6MzsKKNAa+C9I5oSSuoGwNileA= X-Received: by 2002:a65:438d:0:b0:50b:e523:3cd2 with SMTP id m13-20020a65438d000000b0050be5233cd2mr996041pgp.11.1678982152061; Thu, 16 Mar 2023 08:55:52 -0700 (PDT) MIME-Version: 1.0 References: <20230313093450.2560058-1-vfialko@marvell.com> <20230313130428.2650232-1-vfialko@marvell.com> In-Reply-To: <20230313130428.2650232-1-vfialko@marvell.com> From: David Marchand Date: Thu, 16 Mar 2023 16:55:41 +0100 Message-ID: Subject: Re: [PATCH v2] reorder: fix registration of dynamic field in mbuf To: Volodymyr Fialko Cc: dev@dpdk.org, Reshma Pattan , Andrew Rybchenko , jerinj@marvell.com, anoobj@marvell.com, stable@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Mon, Mar 13, 2023 at 2:05=E2=80=AFPM Volodymyr Fialko wrote: > > It's possible to initialize reorder buffer with user allocated memory via > rte_reorder_init() function. In such case rte_reorder_create() is not > required and reorder dynamic field in rte_mbuf will not be registered. > > Both reorder lib and mbuf dynamic field are using `rte_mcfg_tailq` > read/write lock for synchronization, to avoid deadlocking move reorder > buffer initialization before queue insertion. > > Fixes: 01f3496695b5 ("reorder: switch sequence number to dynamic mbuf fie= ld") > Cc: stable@dpdk.org > > Signed-off-by: Volodymyr Fialko Applied, thanks Volodymyr. --=20 David Marchand