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 EEF3B42B71; Mon, 22 May 2023 15:15:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C0D9042D39; Mon, 22 May 2023 15:15:26 +0200 (CEST) Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) by mails.dpdk.org (Postfix) with ESMTP id A4AA042D33 for ; Mon, 22 May 2023 15:15:25 +0200 (CEST) Received: by mail-ua1-f51.google.com with SMTP id a1e0cc1a2514c-783f17f0a00so1955315241.2 for ; Mon, 22 May 2023 06:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684761325; x=1687353325; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Sa2o2I550NIIvOznBJKNh7h0zMawbXg1i191olGj0RM=; b=ratf9Hx0l/oKKwEe+LKHQHj/80lhY6ljXPdo3Tq+KMhS4bvbaJyIzCqAtlNbH5+6N/ IV9kb1DKF/mI7yIVvNbmYYeP982t1IhAYzFpHbMu+dAot4yxQNTWYQXNaZXvy1xIaePi CAt4qZMSiib+Fp/U0BLCljbUvK7nlj1K8vnpOFN/UMTQ7lsEE1XHg0pRLIv3xRhQMPYf 15XRXlU+FzwNKQLlQD70i2boi4O3HvHn5qGMQWGROS+Bb9SkAlzgtHkWrgZ9y/BorZBE YgaNgRzdh32alC9sB4KjgnPDLVo6v/BfNHV5NFqF1BDZJIEAqmNMPbty3Mn3Ky0kP4Rk kw2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684761325; x=1687353325; 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=Sa2o2I550NIIvOznBJKNh7h0zMawbXg1i191olGj0RM=; b=QoAjY5tnt3YB7642YLIQIvZMakkX1gtPxAMrLUhNrlb5TMIJilMVzY/IQvMSBx+iqa NGfZFfSOILkQE6+TXw4nA/CdbvNGKBzuvZenRb52aWPhBtwlDDCiBebkFWA0gab1GXbx 0/cw0XwntAy2jKcZ37VBohfR/4Q6SfhKsRNZWcJTiTJN3KeGz8bY+AZV8hrdZShkvMIY s8pIW0iy3DpABsaU7iq+T+hP5+i89o5bqZBc4HXsetMtj4rlI7EYcXVQv5Ob+06QQTlE 3KUJVWYsBwxLfBuqk546kt4/GfxbH8P0+Sgsf4qNRb7z0MbL9VrlpD1ybjihMC9nA2SK nVwQ== X-Gm-Message-State: AC+VfDwQhEPwRGOM0O9e8B0amDyscJsaq7JIte9J9MZEPWvXJjyh8gm5 EDYDyxu41bO1YGlMqBtGHV5ruMCNIdCVE7VdckY= X-Google-Smtp-Source: ACHHUZ7LoJtvmY7kj4+c2x0U3tqcv1Z85PMVHax/nbOcJWedabMrfHSXWlPu0xMTx1qAx93vubTMfaMIJxjD84OV7T4= X-Received: by 2002:a67:f5d2:0:b0:434:7757:f025 with SMTP id t18-20020a67f5d2000000b004347757f025mr2406840vso.0.1684761324836; Mon, 22 May 2023 06:15:24 -0700 (PDT) MIME-Version: 1.0 References: <20230425104010.339177-1-rbhansali@marvell.com> <20230518154902.2254743-1-rbhansali@marvell.com> <20230518154902.2254743-5-rbhansali@marvell.com> In-Reply-To: <20230518154902.2254743-5-rbhansali@marvell.com> From: Jerin Jacob Date: Mon, 22 May 2023 18:44:58 +0530 Message-ID: Subject: Re: [PATCH v2 5/5] net/cnxk: add mempool check for frag attach To: Rahul Bhansali Cc: dev@dpdk.org, Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , jerinj@marvell.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Thu, May 18, 2023 at 9:19=E2=80=AFPM Rahul Bhansali wrote: > > Add mempool cookies get mark to all frags in case of > reassembly failure. > > Signed-off-by: Rahul Bhansali Series applied to dpdk-next-net-mrvl/for-next-net. Thanks > --- > Changes in v2: No change > > drivers/net/cnxk/cn10k_rx.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/net/cnxk/cn10k_rx.h b/drivers/net/cnxk/cn10k_rx.h > index 9fdb5565e9..cbaf994aa2 100644 > --- a/drivers/net/cnxk/cn10k_rx.h > +++ b/drivers/net/cnxk/cn10k_rx.h > @@ -211,6 +211,9 @@ nix_sec_attach_frags(const struct cpt_parse_hdr_s *hd= r, > /* Update dynamic field with userdata */ > *rte_security_dynfield(mbuf) =3D (uint64_t)inb_priv->user= data; > > + /* Mark frag as get */ > + RTE_MEMPOOL_CHECK_COOKIES(mbuf->pool, (void **)&mbuf, 1, = 1); > + > cnxk_ip_reassembly_dynfield(mbuf, off)->nb_frags =3D > hdr->w0.num_frags - 2; > cnxk_ip_reassembly_dynfield(mbuf, off)->next_frag =3D NUL= L; > @@ -239,6 +242,9 @@ nix_sec_attach_frags(const struct cpt_parse_hdr_s *hd= r, > /* Update dynamic field with userdata */ > *rte_security_dynfield(mbuf) =3D (uint64_t)inb_priv->user= data; > > + /* Mark frag as get */ > + RTE_MEMPOOL_CHECK_COOKIES(mbuf->pool, (void **)&mbuf, 1, = 1); > + > cnxk_ip_reassembly_dynfield(mbuf, off)->nb_frags =3D > hdr->w0.num_frags - 3; > cnxk_ip_reassembly_dynfield(mbuf, off)->next_frag =3D NUL= L; > @@ -263,6 +269,9 @@ nix_sec_attach_frags(const struct cpt_parse_hdr_s *hd= r, > mbuf->ol_flags =3D ol_flags; > mbuf->next =3D NULL; > > + /* Mark frag as get */ > + RTE_MEMPOOL_CHECK_COOKIES(mbuf->pool, (void **)&mbuf, 1, = 1); > + > /* Update dynamic field with userdata */ > *rte_security_dynfield(mbuf) =3D (uint64_t)inb_priv->user= data; > > -- > 2.25.1 >