From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72093C88E4C for ; Fri, 11 Sep 2026 10:41:26 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CBA6642DC1; Fri, 11 Sep 2026 12:41:20 +0200 (CEST) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id 5A2B642DBB for ; Fri, 11 Sep 2026 12:41:18 +0200 (CEST) dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=7vNNq19aNfptCGWp9mHj5OBTYRvyC3/v5M2/SLbtGiI=; b=ZVGIFj5pkjFPSxZ1zQ7ieUL3V0vK/xD80UFDzoj0x1XV5cUUtlk/T+bNBD59zxtzjhoQzHTqa Yug04gfzNfs3CPXwzPalH+yW2csuhsDxI7myyxPTp4Sc1OJlPgO10KcfvTSNQFDj/Qv+p+YySrK MtVwSb+bB1vwjJeBQm4Dz+E= Received: from mail.maildlp.com (unknown [172.18.224.107]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4hh9zy5GN8zJ468D for ; Fri, 11 Sep 2026 18:40:30 +0800 (CST) Received: from frapema500003.china.huawei.com (unknown [7.182.19.114]) by mail.maildlp.com (Postfix) with ESMTPS id CFB8540584 for ; Fri, 11 Sep 2026 18:41:16 +0800 (CST) Received: from localhost.localdomain (10.220.239.45) by frapema500003.china.huawei.com (7.182.19.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.46; Fri, 11 Sep 2026 12:41:16 +0200 From: Marat Khalili To: Konstantin Ananyev CC: Subject: [PATCH 1/7] bpf/validate: fix finished status on restart Date: Fri, 11 Sep 2026 11:39:59 +0100 Message-ID: <20260911104006.34364-2-marat.khalili@huawei.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260911104006.34364-1-marat.khalili@huawei.com> References: <20260911104006.34364-1-marat.khalili@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.220.239.45] X-ClientProxiedBy: frapema500005.china.huawei.com (7.182.19.99) To frapema500003.china.huawei.com (7.182.19.114) 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 If evaluation was restarted, requesting evaluation result would return result from the previous evaluation instead of -EAGAIN. Make evaluation start clear the finished status. Fixes: 6b0da0602cc7 ("bpf/validate: introduce debugging interface") Signed-off-by: Marat Khalili --- lib/bpf/bpf_validate_debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bpf/bpf_validate_debug.c b/lib/bpf/bpf_validate_debug.c index 5d18804a74bc..9a039766322c 100644 --- a/lib/bpf/bpf_validate_debug.c +++ b/lib/bpf/bpf_validate_debug.c @@ -568,6 +568,7 @@ __rte_bpf_validate_debug_evaluate_start(struct rte_bpf_validate_debug *debug, debug->last_point = NULL; debug->pc = 0; debug->evaluate_started = true; + debug->evaluate_finished = false; const int rc = debug_send_event(debug, RTE_BPF_VALIDATE_DEBUG_EVENT_VALIDATION_START); -- 2.43.0