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 4A66D43BCF; Fri, 1 Mar 2024 18:59:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 675774336B; Fri, 1 Mar 2024 18:58:56 +0100 (CET) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id A8C4B402B8 for ; Fri, 1 Mar 2024 18:58:54 +0100 (CET) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6e5b1c6daa3so1101553b3a.1 for ; Fri, 01 Mar 2024 09:58:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709315934; x=1709920734; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=q4gCPFCZiusU7DXzdmfnugs83wHBC2kZqNKZjHn1Ju0=; b=Hzbe/c5x5mzKiQGdFvi90OLsmU6wjt/MNeuj75F41rzeCZXNNToWFc4XhOP7xpTUha S92EqSWWTkc0Kec2n35Vp0dNBB0ovYmHXpFStRaprCZsO2PEm8w+b43ZqfHXo9+WlKD5 Iv6Q0S6vY6Oc2vnWYKqsGibPOvqvS8r78xt+Pz0iqjdS/Vo3fuycDL0/bIOpJw8Lse6+ Q1jbv7OZDhfyS5CkyYgqzPvDZZOZn9pqz8dy6zsOk4vMTLU4+ZUlW+ELvuZCmxxkf/zF Hgxi+1mHNU0U62lumFmmdT6zE2RK65UwDZ5gOilmfOiVmlDpBMPd0PwG+PbaRVJ05Ema eDsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709315934; x=1709920734; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q4gCPFCZiusU7DXzdmfnugs83wHBC2kZqNKZjHn1Ju0=; b=fTw6MXUYGurr+Lg7mdi2ubE8pdCAaqnd58jLl/citXGd1gKWMLNNIwj/i5nwprzIdP PiuKKmKAbwMJB8XnA37WA4x3L2R2rQ/0zhrRHRrTwFoO1a/EFKl3udYmpQU3njczrEIE sLfC2XU8q2zLvO75FPoFC40iB9FgzKmSamgocpDMgRP+iwKyO69amqwErNsNHQndgN+6 lKmw76QyIHTyPjzq3VsdPQUMs46H/WcT0+unEZx+Ss2psAuPxDyUILLG8AC5mztixZTt hzEsifTxNQywjrc3O7/ZmKUccoKZqhqK3KLxo0MYmjqPvd9QGFgnRQINAcEe1FnXvF7K k0WQ== X-Gm-Message-State: AOJu0Yz241SmgC6/JBw2A4ALkknhTlQSFhnNXtVeJZ5zR4XiV1/4QjFB O65W1ktWU/n92/PNplrBMwx8E/5UVXqWMF0IXmk00sxys9DGC74LXH+kjwjYE2Pq+deeh0HFQgc NoHWMkA== X-Google-Smtp-Source: AGHT+IGEBZSo7z2Mdhxh0HuWYOY8TJyrd8UdI09eI2Nh0VQaOfhU1YFrGeb6RilXhDcOYBr49JfbtA== X-Received: by 2002:a05:6a00:4f94:b0:6e4:ea68:633f with SMTP id ld20-20020a056a004f9400b006e4ea68633fmr2665016pfb.20.1709315933775; Fri, 01 Mar 2024 09:58:53 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id bw7-20020a056a02048700b005e438ea2a5asm2938828pgb.53.2024.03.01.09.58.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:58:53 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Konstantin Ananyev , Ray Kinsella Subject: [PATCH 1/6] test/bpf: make sure mbuf is initialized Date: Fri, 1 Mar 2024 09:57:06 -0800 Message-ID: <20240301175842.159967-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301175842.159967-1-stephen@networkplumber.org> References: <20240301175842.159967-1-stephen@networkplumber.org> 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 The BPF filter test was not initializing off load flags. Coverity issue: 375844 Fixes: 2eccf6afbea9 ("bpf: add function to convert classic BPF to DPDK BPF") Signed-off-by: Stephen Hemminger --- app/test/test_bpf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test/test_bpf.c b/app/test/test_bpf.c index f83e72a9adfd..53e3a3112371 100644 --- a/app/test/test_bpf.c +++ b/app/test/test_bpf.c @@ -3341,6 +3341,7 @@ test_bpf_filter_sanity(pcap_t *pcap) struct rte_ipv4_hdr ip_hdr; } *hdr; + memset(&mb, 0, sizeof(mb)); dummy_mbuf_prep(&mb, tbuf, sizeof(tbuf), plen); m = &mb; -- 2.43.0