From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <users-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id A2EFE424CD
	for <public@inbox.dpdk.org>; Mon, 17 Jun 2024 22:43:34 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 58B4940A84;
	Mon, 17 Jun 2024 22:43:34 +0200 (CEST)
Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com
 [209.85.215.181])
 by mails.dpdk.org (Postfix) with ESMTP id 157B4402DA
 for <users@dpdk.org>; Mon, 17 Jun 2024 22:43:33 +0200 (CEST)
Received: by mail-pg1-f181.google.com with SMTP id
 41be03b00d2f7-6c4926bf9baso3954939a12.2
 for <users@dpdk.org>; Mon, 17 Jun 2024 13:43:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718657012; x=1719261812; darn=dpdk.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=Si5elgH3SfFRIPZaOriEDGy07QpYusOF62KiPAb79Oc=;
 b=UzTRQK5GvXvV3EQynUNq4TpXKFpxqYNd6djny4aq3AtXtjcKv/UyFcCiKdPuctBRHC
 84d4F+YVNN5/UpVBXrqJxnfzd662JMTkrccigTwBfVuuuFXzaSdTfqLAe4VVDqF6Aeik
 DHwnqEz5Nmcp0QAYCpg6P2tH9BjFU5+tk6m8GdMg6W8UIRibrB1gBvJmKn34PzcY3zJj
 TdDIMYW12tELJYTptabJ77D/DftmcJyY1lY7lPOcimqsWMmGTQreiw4pX3QzeDrGWQQ6
 2CBXoSi4E5TzYvY4j7EUfRfl7gO8dtu1PGhKOWCTdXBK9+m5hzXGEyATY1pYlziNxq//
 ThEg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718657012; x=1719261812;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=Si5elgH3SfFRIPZaOriEDGy07QpYusOF62KiPAb79Oc=;
 b=BowKQGA5CnFY7a+VsagzAkU/iquGQlbnfnwUcbrV1dupDo9JyjOmTem/MYMgvoHDAv
 cLvlzHMhTemIrFBPg9Ei3BiNZ50iv41rkFtPxxXc3/2sn+yNWDFwhZjwdsqXxkWbk3pr
 4VXVc8aV2pMEQuDztE3qyuSKQA/l/vjJZlSqmG82Q6EKkZpgULvGotG5ijJD5BlKphPS
 SU0J4U58RVsKt+5poSyDshBOv7jfagZjH1Qw0HfWVkyauchJ6jXZVCIim9hIIE0V7t6i
 UZd5lMz7SAgF149m7j/kC3ROWDbvvPijcrsC/csOvv5dhU2UQQHRvesDVPfL6vh0O4x0
 Omwg==
X-Gm-Message-State: AOJu0Yy7G9apXQA0lAlcCm5u2F9X8YM3L271w86ma9qK4dwuyHuerWFW
 IVi9fpVT2XwSVCZm6vhtgzGB8BCPGQp5asnAs842PGs/yuyAY4JHASRhrtp/A7g4ForV8vo4qz+
 p6arXZuBdoJVg5S5qr8VChC8P7JI=
X-Google-Smtp-Source: AGHT+IHkfJvxqd4U2ZLL9UAkZ/a2ydRdO0PyJQMW0co2KVp7FAf1Bh12BNXAQmWnCa3LCdFgziFJvD5G4uScFGehTRA=
X-Received: by 2002:a17:90a:8c94:b0:2c2:1d0f:3c6e with SMTP id
 98e67ed59e1d1-2c4db951e80mr10826333a91.37.1718657011917; Mon, 17 Jun 2024
 13:43:31 -0700 (PDT)
MIME-Version: 1.0
References: <CAC-fF8S8KL_d4QPWuQL+vAsQAfjnPA1m7hNP830qobHJ-4J3eA@mail.gmail.com>
 <20240617083049.412242fb@hermes.local>
 <CAC-fF8QcWvS-neMUq4HzY1Uh4cPnDFuVVnPLkC8B5ZtcReLTsQ@mail.gmail.com>
 <CAC-fF8RCdRtiZiQza5FOZpZBPzTQGyTAJ-6V7tZQCVu5cywUYg@mail.gmail.com>
 <CAC-fF8TVPYBui-D+OMmjYURszHi5ipfkyuV60dWAJ2QDXsSOHA@mail.gmail.com>
In-Reply-To: <CAC-fF8TVPYBui-D+OMmjYURszHi5ipfkyuV60dWAJ2QDXsSOHA@mail.gmail.com>
From: Isaac Boukris <iboukris@gmail.com>
Date: Mon, 17 Jun 2024 23:43:19 +0300
Message-ID: <CAC-fF8ThAXSQ3nMQtOE7ofQ4C04qWQTWZwPMJ_WMdR9ERv6cVw@mail.gmail.com>
Subject: Re: dumpcap: weird failure with six IPv6 hosts in the filter
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: users@dpdk.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
Errors-To: users-bounces@dpdk.org

On Mon, Jun 17, 2024 at 10:37=E2=80=AFPM Isaac Boukris <iboukris@gmail.com>=
 wrote:
>
> > Just a quick update that I still see the issue in my env with the
> > master branch (24.07.0-rc0), I'm now testing by adding the filter to
> > 'sample_filters' in test_bpf.c and running:
> > time sudo build/app/dpdk-test bpf_convert_autotest
> >
> > With 5 hosts it takes less than 2 secs, with 6 it takes about 25 secs,
> > i'll try to strace it maybe.
>
> strace was useless, no syscalls for ~18 secs, not sure how to debug it
> further, valgrind / callgrind don't work on dpdk..
>
> It doesn't seem to be about the size though, I was able to produce
> larger bpf code with ipv4 addresses and it worked fine too.

Debugged a bit further with gdb, it looks like it is stuck in a while
loop in lib/bpf/bpf_validate.c:evaluate(), there is a comment saying
"make sure we evaluate each node only once" but it seem to go back and
forth on the same idx's afaict.