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 D893DA0032; Mon, 15 Nov 2021 00:39:56 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 77C8640E01; Mon, 15 Nov 2021 00:39:55 +0100 (CET) Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) by mails.dpdk.org (Postfix) with ESMTP id 4D2B740141 for ; Mon, 15 Nov 2021 00:39:53 +0100 (CET) Received: by mail-ua1-f44.google.com with SMTP id i6so31070149uae.6 for ; Sun, 14 Nov 2021 15:39:53 -0800 (PST) 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=ollxm0PYZj0yia0fu+OAjHSxLxtS1Cy2zDuaeAJp2S8=; b=DTc4m5ZNxzx7lepfMWzVrYWxEEBQuiIRkJfSHUSjyfu8fBzc9hKGH27kExUAZ3CrCD NnrLUNo3Tx53RMqneyq2RwcvUonuWzTAYZlkE7YMqHkAU+JhuroLGaAXCOqT/FhJGbEJ tdE5o266R/I0sVapFEm9VTovxInofjodoT0MKvnxbrVz8Y5AtSnnx5EccPq0gqKVQyho 7Pqufb2m5R8hUMs3YHTruvt7GMA5If0j/lDP2I5YMPdTao8N6tqk7v7iuJYfh/JzYnRN W6yqBWb9255Zu/4T+W4DJyGMFSfEbjDid91cTTaaW/k5df930+AhO5KRJlox1mXmq0VD 4MUQ== X-Gm-Message-State: AOAM533l+cjCnWESm/b5mZHev/7wkbxJDg2IHUfxqhckGfun0MHtxCJz 1hCxCKGxVZj5qWQvXD3v0YiZLG7ndbUWaA== X-Google-Smtp-Source: ABdhPJy0LXDdCX7HZYI9Qza4TQZJcaJYHYg4kCI7vjNH+xYPI9f32HvzhXgWjntCN0rh/zMnQEvrOg== X-Received: by 2002:a67:e114:: with SMTP id d20mr12349399vsl.5.1636933192552; Sun, 14 Nov 2021 15:39:52 -0800 (PST) Received: from mail-ua1-f52.google.com (mail-ua1-f52.google.com. [209.85.222.52]) by smtp.gmail.com with ESMTPSA id m15sm8688424vsh.31.2021.11.14.15.39.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Nov 2021 15:39:52 -0800 (PST) Received: by mail-ua1-f52.google.com with SMTP id i6so31070120uae.6 for ; Sun, 14 Nov 2021 15:39:52 -0800 (PST) X-Received: by 2002:a67:ba0c:: with SMTP id l12mr35440840vsn.21.1636933192112; Sun, 14 Nov 2021 15:39:52 -0800 (PST) MIME-Version: 1.0 References: <20211109210403.114391-1-stephen@networkplumber.org> <20211110161848.34050-1-stephen@networkplumber.org> In-Reply-To: <20211110161848.34050-1-stephen@networkplumber.org> From: Luca Boccassi Date: Sun, 14 Nov 2021 23:39:41 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] test/bpf_convert: do not require DNS lookup To: Stephen Hemminger Cc: dev 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 Wed, 10 Nov 2021 at 16:18, Stephen Hemminger wrote: > > These tests were using strings with hostname (dpdk.org) and this makes > test code do a DNS lookup. In container environment used for OpenSuse > build, DNS is unavailable. Replace dpdk.org with an IPv4 address > reserved for documentation (RFC 5737) and use IPv6 in one example (RFC 3849). > Actual addresses don't matter for this test whichis validating tke > classic BPF to eBPF for common cases. > > Signed-off-by: Stephen Hemminger > --- > v2 - use RFC reserved address > > app/test/test_bpf.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/app/test/test_bpf.c b/app/test/test_bpf.c > index ef861d05e755..785f3e689e10 100644 > --- a/app/test/test_bpf.c > +++ b/app/test/test_bpf.c > @@ -3359,8 +3359,8 @@ static const char * const sample_filters[] = { > "dst net 192.168.0.0/24", > "dst net 192.168.0.0 mask 255.255.255.0", > "port 53", > - "host dpdk.org and not (port 80 or port 25)", > - "host dpdk.org and not port 80 and not port 25", > + "host 192.0.2.1 and not (port 80 or port 25)", > + "host 2001:4b98:db0::8 and not port 80 and not port 25", > "port not 53 and not arp", > "(tcp[0:2] > 1500 and tcp[0:2] < 1550) or (tcp[2:2] > 1500 and tcp[2:2] < 1550)", > "ether proto 0x888e", > -- > 2.30.2 Acked-by: Luca Boccassi