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 555FB43C1D; Wed, 28 Feb 2024 10:56:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2CD81402AC; Wed, 28 Feb 2024 10:56:25 +0100 (CET) Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com [209.85.222.45]) by mails.dpdk.org (Postfix) with ESMTP id 56B884027D for ; Wed, 28 Feb 2024 10:56:24 +0100 (CET) Received: by mail-ua1-f45.google.com with SMTP id a1e0cc1a2514c-7d5c40f874aso2722584241.1 for ; Wed, 28 Feb 2024 01:56:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709114183; x=1709718983; darn=dpdk.org; 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=4OrMnIibvTpm31ujhrwAxq/oZj3Sf2mbhVeFsR3zTq8=; b=hKT4Ya+6/SzBu3uCD7f961yN+Q1yyqGMW3N9PA/BvMFCRaYp6xnvJMB5Zlq0ju7Ld6 SsQDP8/lRn73FSttgi7oax0w90t/mWoL6HvEiEggdcQF0tk7VXI00hCWC8ONWdNwrlp4 5nV1jNNtDyaLPW71XpCr8x44tCus4gqtQi3u8tG/mpr0VTl3b4ZBIxv/huorCRXkdSo5 p2E6qhaHFprWc4/sxHDDxIly3fc7OK22yOrA+J3hS6HF/YNanxwBpZpFADvONk+dWipA VP3mSEum8BGhXG0zRH4Kmeh6OiorHLrSADixjuxJ0OMYseOoOjTIHE9J2/t6ZY1+Q3aB Vz7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709114183; x=1709718983; 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=4OrMnIibvTpm31ujhrwAxq/oZj3Sf2mbhVeFsR3zTq8=; b=nicXt+RH+XGcd4wHO4goXHlkeQddwmk3njdTUJf8WBiXBwE+yGpU6/XVQoiBedOnMf gfMxLxjAGZYtEKpuuBqem0AhPlmhhhHuLX8Pr/lUyVtTLQh7BHRBwjYJlMTJuQBJKsOf eGVbN4AcxI7RY1w8PFC0jJWHRCn415Cn16VwXFnM1yCm6zsxoTTgMydmvXAEjigLQxxX 9/Yx60tIpOHkaGHMMHUQLghz7Qjd+IkQVivht+cp+vFjbFqOX3cn5N143lFRDvDGFW0H jpTrWaovYduNbUq1zZDdtMXqlp8DrEvbpBXvqhCfcgKEO/P0d67qrQNaLPGGzyFv1APD TKCw== X-Forwarded-Encrypted: i=1; AJvYcCVcd9rhxvNtkv3fGPhlMUXNEc4ze3XvpFYbnXV4l9SGOZkvtgeVGMADJiusJF7WpvAHjz+s4AOfY9c5pqY= X-Gm-Message-State: AOJu0YygFXZsDu2glVC4kIF/R3tIHeTJvus4MpZIS7825l28za4+o1J5 qntZQM2Hfi/ULvmIAtIiHg/kaw7iy7hp3LdRYwFnBp68ugFHzhH7siPM9tvpxMSEWu+YIxxQKgY okmuola2R8mMjsyxUF7zKITiE/fg= X-Google-Smtp-Source: AGHT+IFpqTpkgvD6x5/Z+rq3IFVQXgdEkn7LpjTbm5x6U7KWj28ewAnnsAkQjhTOJ9ifFiyloJAxI+TXEticdf4XA/I= X-Received: by 2002:a05:6102:5c6:b0:472:6b52:1a3c with SMTP id v6-20020a05610205c600b004726b521a3cmr1428660vsf.15.1709114183578; Wed, 28 Feb 2024 01:56:23 -0800 (PST) MIME-Version: 1.0 References: <20240226083003.317553-1-ganapati.kundapura@intel.com> In-Reply-To: From: Jerin Jacob Date: Wed, 28 Feb 2024 15:25:57 +0530 Message-ID: Subject: Re: [EXT] [PATCH v1] app/test: fix segfault in Tx adapter autotest To: Pavan Nikhilesh Bhagavatula Cc: Ganapati Kundapura , "dev@dpdk.org" , Jerin Jacob , "jay.jayatheerthan@intel.com" , "s.v.naga.harish.k@intel.com" , "abhinandan.gujjar@intel.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 Mon, Feb 26, 2024 at 6:30=E2=80=AFPM Pavan Nikhilesh Bhagavatula wrote: > > > Uninitialized mbufs are enqueued to eventdev which causes segfault > > on freeing the mbuf in tx adapter. > > Fixed by initializing mbufs before enqueuing to eventdev. > > > > Fixes: 46cf97e4bbfa ("eventdev: add test for eth Tx adapter") > > > > Signed-off-by: Ganapati Kundapura > > Acked-by: Pavan Nikhilesh Applied to dpdk-next-eventdev/for-main. Thanks > > > > > diff --git a/app/test/test_event_eth_tx_adapter.c > > b/app/test/test_event_eth_tx_adapter.c > > index dbd22f6..482b8e6 100644 > > --- a/app/test/test_event_eth_tx_adapter.c > > +++ b/app/test/test_event_eth_tx_adapter.c > > @@ -484,6 +484,10 @@ tx_adapter_service(void) > > int internal_port; > > uint32_t cap; > > > > + /* Initialize mbufs */ > > + for (i =3D 0; i < RING_SIZE; i++) > > + rte_pktmbuf_reset(&bufs[i]); > > + > > memset(&dev_conf, 0, sizeof(dev_conf)); > > err =3D rte_event_eth_tx_adapter_caps_get(TEST_DEV_ID, > > TEST_ETHDEV_ID, > > &cap); > > -- > > 2.6.4 >