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 ED87DA034C; Thu, 24 Feb 2022 21:39:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BCD7E41143; Thu, 24 Feb 2022 21:39:26 +0100 (CET) Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) by mails.dpdk.org (Postfix) with ESMTP id 401334113D for ; Thu, 24 Feb 2022 21:39:25 +0100 (CET) Received: by mail-io1-f52.google.com with SMTP id f14so4240174ioz.1 for ; Thu, 24 Feb 2022 12:39:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iy/Tuy2b31GjdwvcydC1gsuWAlDDgkGhf1MIlLK8Cxo=; b=QUWUzKwomAN3i/3lQRl+BvkqY85j+xvVTrGscb5PA6d1/hUrMQyareOon3xoWnufcq I901VWfGmgMbL7I/VJGq2/kIHA/5f4TiyrU1WKguPv4Q2Cn9mDVsMWhU89+CdPW1ZQla 6ZQ+8QFPnEZ5QHa9eREAYIaFDwbHu1MpetS6VBENVu55G6vO5BNJfY79xY1T44oDPO/y ZarG85bf7cVBRoArczVmD8W9iYFRkYjfOr+Cjv2I+UhOGz9lo9jC4VB/peA3Xkzva9qn 2WgEqxbsACWWhPj4cr25j3aUlOEDJpb1ZsQhgA+cEk3HpEE+m5e64SPtYQcGoLSdxw2j dOGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iy/Tuy2b31GjdwvcydC1gsuWAlDDgkGhf1MIlLK8Cxo=; b=UvHG6xvj+Z6LBTOp2n6ynwYOJRhaMzANOFRUYs5Xfv/CTXIe0oAJSQ2WkdnlRSfnKu owbXrG3QsOa+WJh/M9VNwvSsoq5kvuVOUAR3vfN/zIkX6VchBjZ+p4ZeL2ZjKqOSpjQu MnYUdxLvptYkGiFMg12xaPU0z/hj0p74NL4BpNd38NG7Oxa+RnGuv3f+zzHs8Xkz5p+r i2k5ooifPc03orKljp7DQpdFfdQtYi1/HmqzeuRF9QgkdXTES3GdO7ZbgLyaXFAiGIO7 7S1yoyw0V41eSB8GTvlZyzDNYC+VV4b7QgO0rJSIW3Wxd8h0ld/LzP0IWo86672bl1Cc Pb4w== X-Gm-Message-State: AOAM532RQ/mLiI6aPJP6uyX7bHIwh6eRPyXUB05b6pY1O2s4beBQwDZl LK5J4TfUsF3Nxg8xlYhZ4xME/BWz7jQf2YRhfJeB6p7Gnk0VKQ== X-Google-Smtp-Source: ABdhPJzMbJvcPv6MErT25N5qvZbgD77tTMV8mXFeAJI0oNlFZZ9tVhpZInJrHjgf8XI0aTgzJoAXrRf6W4KYt8v74Go= X-Received: by 2002:a02:604f:0:b0:30f:e6f1:3883 with SMTP id d15-20020a02604f000000b0030fe6f13883mr3444146jaf.266.1645735164435; Thu, 24 Feb 2022 12:39:24 -0800 (PST) MIME-Version: 1.0 References: <20220224061044.1140750-1-vattunuru@marvell.com> <20220224094931.1359968-1-vattunuru@marvell.com> In-Reply-To: <20220224094931.1359968-1-vattunuru@marvell.com> From: Jerin Jacob Date: Fri, 25 Feb 2022 02:08:58 +0530 Message-ID: Subject: Re: [PATCH v2 1/1] net/cnxk: support outbound soft expiry notification To: Vamsi Attunuru Cc: dpdk-dev , Jerin Jacob , Nithin Dabilpuram 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 Thu, Feb 24, 2022 at 3:19 PM Vamsi Attunuru wrote: > > Patch implements soft expiry notification mechanism in outbound > path by creating required number of ring buffers and a common poll > thread which polls for soft expiry events enqueued by microcode. > > Signed-off-by: Vamsi Attunuru > --- > v2: fix subject and commit message. > +static void * > +nix_inl_outb_poll_thread(void *args) > +{ > + struct nix_inl_dev *inl_dev = args; > + uint32_t poll_freq; > + uint32_t i; > + bool bit; > + > + poll_freq = inl_dev->soft_exp_poll_freq; > + > + while (!soft_exp_poll_thread_exit) { > + if (soft_exp_consumer_cnt) { > + for (i = 0; i < ROC_NIX_INL_MAX_SOFT_EXP_RNGS; i++) { > + bit = plt_bitmap_get( > + inl_dev->soft_exp_ring_bmap, i); > + if (bit) > + inl_outb_soft_exp_poll(inl_dev, i); > + } > + } > + plt_delay_us(poll_freq); Changed delay to avoid wasting cycles as it is busy loop. Acked-by: Jerin Jacob Updated the git commit as follows and applied to dpdk-next-net-mrvl/for-next-net. Thanks net/cnxk: support outbound soft expiry notification Add support for soft expiry notification mechanism in outbound path by creating required number of ring buffers and a common poll thread which polls for soft expiry events enqueued by microcode. Signed-off-by: Vamsi Attunuru Acked-by: Jerin Jacob