Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp826162rdg; Wed, 11 Oct 2023 06:42:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHkA3424hGtrNeGtjck9B73rDh6uMi9EryzLghAOxp3T2/gUUOmIeT9f9DDIb+pZ0yTj2b X-Received: by 2002:a05:6358:441d:b0:143:8574:4311 with SMTP id z29-20020a056358441d00b0014385744311mr24084343rwc.12.1697031730115; Wed, 11 Oct 2023 06:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697031730; cv=none; d=google.com; s=arc-20160816; b=vUnaQWWpehzK2KmnHeTC4LMlE26DPlelEzaksU9BDJW/vEslI04fUJrVBOsL3Op7Gb TklK3/txn8xVvYhpDw4fJioM3ohs7avdXyJ77dX3EKd1ZE0+/gZxJZng0nxi7Tudx2+t 4RcCqmUT3PSUqAtpUS1/2tkHsnukU9mf3cRzqW+sKYT2xPLDB9UFFxjnSi/eLezrsBaS G00s8kCUzXBLdm3KVyvDG7Mj3lA433RS13nDke7/XLglA1UNfzedIGh6D6nD9xFqHcNQ V7mpxPPDsFx7t2Z38DLgrxxgMn3kvVvvHsQUd9g6SOX2WuvEUqDqLMSENCqbrOwpD7yw VIbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=MnCtsfSMJ0596JXKTEwqnq/8AJhM3PDAMQhE8KTSUnc=; fh=xY3SGbb1idbM3eggfpCmCK0OKi7EOmyfCbklqs6adrw=; b=QmkxCQuwGkz0hdg7425IqZC2lsyDCKwlyD+MEHx2Z3rAwU3WJgx6k20HTgxsbPbbfu TgrS/6zVOl5XgWHYLAU8M57fw9MgSlWRD6ynRx84TeAv1Frg2cckIVVTETN752IzPESV F8BDdLfv4HFWazdNBpf376t4yzqEsYfvVZvJo4t+ccBfH/okLzeEg06ISBB3qMcToa6a b5cQnvUxVjyA9hHlXrlFvjuZcWo0c8dtUN5vMf4af1BMQjjLpNqsQ+sxs+X+PkIyEXOX UUlxpJnoc9zEYBV17jQftxQN/WC+moNcvarAmrVwOHTh878ajs95dHSrdCcumUrbVaG3 6Kog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MRJmMkhw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id x13-20020a63170d000000b0055c8fd5fe00si14304364pgl.886.2023.10.11.06.42.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 06:42:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MRJmMkhw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id ED20180ECF98; Wed, 11 Oct 2023 06:42:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235035AbjJKNlt (ORCPT + 99 others); Wed, 11 Oct 2023 09:41:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234924AbjJKNln (ORCPT ); Wed, 11 Oct 2023 09:41:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52FBBA7 for ; Wed, 11 Oct 2023 06:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697031660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MnCtsfSMJ0596JXKTEwqnq/8AJhM3PDAMQhE8KTSUnc=; b=MRJmMkhwSRIK1YtyVAKE3qYyGzM3dvJGcR+ZHFxKXpVRCR5MfKL2Fb54L7zaZpGnAYYm4X cnxZTJN4e0UcUhY43bL7uRidWlWzr7ONDxbUe5hJIc1MUJn+CUeJ3iI79d4XZPs08gyTjX 7e81Dm6h5f2wN+2ghDo4x0O183y25oo= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-53-oQYP-2PfPjuItR49lDfaaQ-1; Wed, 11 Oct 2023 09:40:58 -0400 X-MC-Unique: oQYP-2PfPjuItR49lDfaaQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7FF3A1C0759E; Wed, 11 Oct 2023 13:40:57 +0000 (UTC) Received: from RHTPC1VM0NT (unknown [10.22.34.140]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DD28A21CAC6B; Wed, 11 Oct 2023 13:40:56 +0000 (UTC) From: Aaron Conole To: Paolo Abeni Cc: netdev@vger.kernel.org, dev@openvswitch.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Pravin B Shelar , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Adrian Moreno , Eelco Chaudron Subject: Re: [PATCH net 3/4] selftests: openvswitch: Skip drop testing on older kernels References: <20231006151258.983906-1-aconole@redhat.com> <20231006151258.983906-4-aconole@redhat.com> <2e7ee087b33fba7e907c76e60d9eaed1807714e2.camel@redhat.com> Date: Wed, 11 Oct 2023 09:40:56 -0400 In-Reply-To: <2e7ee087b33fba7e907c76e60d9eaed1807714e2.camel@redhat.com> (Paolo Abeni's message of "Tue, 10 Oct 2023 12:29:01 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 06:42:05 -0700 (PDT) X-Spam-Level: ** Paolo Abeni writes: > On Fri, 2023-10-06 at 11:12 -0400, Aaron Conole wrote: >> Kernels that don't have support for openvswitch drop reasons also >> won't have the drop counter reasons, so we should skip the test >> completely. It previously wasn't possible to build a test case >> for this without polluting the datapath, so we introduce a mechanism >> to clear all the flows from a datapath allowing us to test for >> explicit drop actions, and then clear the flows to build the >> original test case. >> >> Fixes: 4242029164d6 ("selftests: openvswitch: add explicit drop testcase") >> Signed-off-by: Aaron Conole >> --- >> .../selftests/net/openvswitch/openvswitch.sh | 17 ++++++++++ >> .../selftests/net/openvswitch/ovs-dpctl.py | 34 +++++++++++++++++++ >> 2 files changed, 51 insertions(+) >> >> diff --git a/tools/testing/selftests/net/openvswitch/openvswitch.sh b/tools/testing/selftests/net/openvswitch/openvswitch.sh >> index 2a0112be7ead5..ca7090e71bff2 100755 >> --- a/tools/testing/selftests/net/openvswitch/openvswitch.sh >> +++ b/tools/testing/selftests/net/openvswitch/openvswitch.sh >> @@ -144,6 +144,12 @@ ovs_add_flow () { >> return 0 >> } >> >> +ovs_del_flows () { >> + info "Deleting all flows from DP: sbx:$1 br:$2" >> + ovs_sbx "$1" python3 $ovs_base/ovs-dpctl.py del-flows "$2" >> + return 0 > > The chunk above mixes whitespaces and tabs for indenting, please be > consistent. Thanks. Will fix in v2 > Thanks! > > Paolo