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 0F12AA00C5; Wed, 14 Sep 2022 14:59:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A71094021D; Wed, 14 Sep 2022 14:59:05 +0200 (CEST) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by mails.dpdk.org (Postfix) with ESMTP id 49E8240156 for ; Wed, 14 Sep 2022 14:59:04 +0200 (CEST) Received: by mail-qt1-f177.google.com with SMTP id r20so10319996qtn.12 for ; Wed, 14 Sep 2022 05:59:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=0sJOy+iOzhGVanRl0cIWtsF8eY54+b5lgfrj2mtftxU=; b=Eb7aMAJMFqQYSXmDjl8j7IM87Bwx7R/K6M0L6CN6B3w9+klWSwU04Lv1edInW48J5I iJwzmJonHV3nqK0JYvgLOzJLcNoWA8Rt496FX5+QFZJBZXXQvKDndVKQmiWFbqLVPQdf bbI2z+QbRt7GTBJXo4wEcpWiqdTL86fivC2lJonLh56YH/GUtpa3p6P3X7XxL/TAnZjK WJu1pmH9r5HYjEJHa72htfdw2iJMrIYTFSipednNRPdj6htzxvg4YQc/4g/oGZHtsiBa e6XyDSxK/lk3b8a2uUTEEzAFBskbwgwEWxtQpIEeOXmvPDdIP0Nj8wIhnl1VhAhBB6VY DTqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=0sJOy+iOzhGVanRl0cIWtsF8eY54+b5lgfrj2mtftxU=; b=Cz+D1zwyg1s/BG+A/cxeMuzWvW1z2W7lO/Lel/QeE0JCj5XkTQ7KTJWGj6l7ZZsWw0 Wx1698A1cI3Cr/Q6lqoTBaOwuvBVVj6AszaYLEoXe3R050NI+SXk92MHpwvnsa2dI0Vb cKnTSa6mrp1WZUdXx6eZ4hFuB31Z/tWEmjYZbn3CMEplaMJkAno689gjXhmnCAA4Ura0 7dQW056EpfLAmH9GKYPmDbZ9/k+C2vRhqCyKF71z/VwSumzINIlprYUKGg03WVenqNIN BFa2QjS89MKnTTMXsROb2A1nB6QWkYU38SGFjryaCc/q6io2S5VQW+q4REDQtGpp1Z3e LCdQ== X-Gm-Message-State: ACgBeo3y3rtyg86VfyI0W0kNiP1GmCvBqqZQOh3gcieQkViv84/o5poL DdQbP1TYW+BOYC6Q54WqHK4Rk/ZnoeGqqqvUNKwK0aN+VVE= X-Google-Smtp-Source: AA6agR5E6VSeTVwdu01d7MryWNp09goWwSQsnoUKqNuCFlTL9Q3WoaKNHR0D1pp4crzBf+bkWm1N0zo7u9owsV6wzjY= X-Received: by 2002:ac8:4e88:0:b0:35c:bd98:9810 with SMTP id 8-20020ac84e88000000b0035cbd989810mr1299505qtp.410.1663160343651; Wed, 14 Sep 2022 05:59:03 -0700 (PDT) MIME-Version: 1.0 References: <20220816153545.7536-1-pbhagavatula@marvell.com> In-Reply-To: <20220816153545.7536-1-pbhagavatula@marvell.com> From: Jerin Jacob Date: Wed, 14 Sep 2022 18:28:37 +0530 Message-ID: Subject: Re: [PATCH] event/cnxk: add preliminary Tx queue depth check To: pbhagavatula@marvell.com Cc: jerinj@marvell.com, Shijith Thotton , dev@dpdk.org Content-Type: text/plain; charset="UTF-8" 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 Tue, Aug 16, 2022 at 9:05 PM wrote: > > From: Pavan Nikhilesh > > add preliminary Tx queue depth check and return on failure. > Once the check passes, tx_adapter_enqueue() function becomes > a blocking call till it succeeds. > > Signed-off-by: Pavan Nikhilesh Applied to dpdk-next-net-eventdev/for-main. Thanks > --- > drivers/event/cnxk/cn10k_worker.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/event/cnxk/cn10k_worker.h b/drivers/event/cnxk/cn10k_worker.h > index 0915f404e0..a71e076ff8 100644 > --- a/drivers/event/cnxk/cn10k_worker.h > +++ b/drivers/event/cnxk/cn10k_worker.h > @@ -655,6 +655,11 @@ cn10k_sso_hws_event_tx(struct cn10k_sso_hws *ws, struct rte_event *ev, > } > > m = ev->mbuf; > + txq = cn10k_sso_hws_xtract_meta(m, txq_data); > + if (((txq->nb_sqb_bufs_adj - > + __atomic_load_n((int16_t *)txq->fc_mem, __ATOMIC_RELAXED)) > + << txq->sqes_per_sqb_log2) <= 0) > + return 0; > cn10k_sso_tx_one(ws, m, cmd, lmt_id, lmt_addr, ev->sched_type, txq_data, > flags); > > -- > 2.25.1 >