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 DC968A00C5; Tue, 15 Feb 2022 23:19:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A17594115A; Tue, 15 Feb 2022 23:19:42 +0100 (CET) Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) by mails.dpdk.org (Postfix) with ESMTP id 56D5F41151 for ; Tue, 15 Feb 2022 23:19:40 +0100 (CET) Received: by mail-il1-f174.google.com with SMTP id h11so94226ilq.9 for ; Tue, 15 Feb 2022 14:19:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atomicrules-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NEobRywn17JmUvRAIV0N02w6ki94aTR7AINj0fmS4y4=; b=m5PnkelZExaTM9QJKT/hp0HdHIVr6kOV6jdXbmeQQHnCdlfzA4yt7m27YZWzqVvWpA S670EqPfddLo+6KVA9ZkyjRwA9Qs+g9W2YFzsHcRAMuCmJ2+yYfT56MbcLxDak62In4m wCR9YGu8xEBXG/XSk05mBzchqPLtn6cThyLNUWUNnHBgHGi/m3w0f4GaKr4Fxh/Axgjl rw/qI2ErjyXzDgSPRYZ55eXbQimWINyWECBsRXg2DruGiTORNkbRGJJFNkTInVXNJTG/ /NSj6llUgDOJ/ifgogGbANJh7CerQGDQwRRgM6632NWvf49kOUpAzxiHk8XJkjoqpEQt s90A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NEobRywn17JmUvRAIV0N02w6ki94aTR7AINj0fmS4y4=; b=iaMZoUqJHV9U18g2fhrWzXW7sHy5ucKO9sSJUrFeTrK9RjVnwU2kXOeBhKyaGS/ipm WylY8d1E69jLS3xQOliKWexBWfhzaPhep0547KfDjOGvQzhNZqRY/tmejtyBn1NlBzRS t1XKHe1xLcaO9OKn1ItINL3y7yZDMDqagaKfz2aj8tK7Wx8RpPIpta/I79lqp2M3ggVx RpadMbIUbWJeq3hE8mUtGxsSF8bZcDsEGu9ESq3jq0K1EESa9NRyx3ywWYYQr1GVDCAD zOXk/jduSGb0zLsq5uYXNqaQpfdlgv7UFfJ/4yJzAvHMl7cGU8KkBLKTQkntNwVX7pdd OvjA== X-Gm-Message-State: AOAM5324fpUHVMws4vmF9Ik9UIlgszuzfQalqZ9G7eHx6HXNVrlU4SYR q1tONKkEv6fnv8FmfhkbNOjJG/1zz63mug== X-Google-Smtp-Source: ABdhPJxGYzm9SyHorrSO2vrELMklJagjgIZTZp5PmeiM08hfK/1TvRm4HVgFr6nhLSBhDcGQE/vEPw== X-Received: by 2002:a05:6e02:170b:: with SMTP id u11mr775757ill.124.1644963579571; Tue, 15 Feb 2022 14:19:39 -0800 (PST) Received: from john-All-Series.tds (h75-100-85-216.cntcnh.broadband.dynamic.tds.net. [75.100.85.216]) by smtp.gmail.com with ESMTPSA id a15sm10758823ilj.21.2022.02.15.14.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 14:19:39 -0800 (PST) From: John Miller To: dev@dpdk.org, ferruh.yigit@intel.com Cc: shepard.siegel@atomicrules.com, John Miller Subject: [PATCH v3 4/7] net/ark: packet generator and checker status update Date: Tue, 15 Feb 2022 16:19:23 -0600 Message-Id: <20220215221926.409039-4-john.miller@atomicrules.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215221926.409039-1-john.miller@atomicrules.com> References: <20220119191255.273988-ed.czeck@atomicrules.com> <20220215221926.409039-1-john.miller@atomicrules.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Configuration status updates for internal packet checker and generator. Signed-off-by: John Miller --- drivers/net/ark/ark_pktchkr.c | 2 +- drivers/net/ark/ark_pktgen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ark/ark_pktchkr.c b/drivers/net/ark/ark_pktchkr.c index 84bb567a41..12a5abb2f7 100644 --- a/drivers/net/ark/ark_pktchkr.c +++ b/drivers/net/ark/ark_pktchkr.c @@ -113,7 +113,7 @@ ark_pktchkr_stopped(ark_pkt_chkr_t handle) struct ark_pkt_chkr_inst *inst = (struct ark_pkt_chkr_inst *)handle; uint32_t r = inst->sregs->pkt_start_stop; - return (((r >> 16) & 1) == 1); + return (((r >> 16) & 1) == 1) || (r == 0); } void diff --git a/drivers/net/ark/ark_pktgen.c b/drivers/net/ark/ark_pktgen.c index 515bfe461c..6195ef997f 100644 --- a/drivers/net/ark/ark_pktgen.c +++ b/drivers/net/ark/ark_pktgen.c @@ -107,7 +107,7 @@ ark_pktgen_paused(ark_pkt_gen_t handle) struct ark_pkt_gen_inst *inst = (struct ark_pkt_gen_inst *)handle; uint32_t r = inst->regs->pkt_start_stop; - return (((r >> 16) & 1) == 1); + return (((r >> 24) & 1) == 1) || (((r >> 16) & 1) == 1) || (r == 0); } void -- 2.25.1