From patchwork Sun May 24 13:00:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Brivio X-Patchwork-Id: 1296847 X-Patchwork-Delegate: pablo@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netfilter-devel-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=KR307Jbc; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49VL1L0Yvxz9sSF for ; Sun, 24 May 2020 23:00:21 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729017AbgEXNAV (ORCPT ); Sun, 24 May 2020 09:00:21 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:49023 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725873AbgEXNAU (ORCPT ); Sun, 24 May 2020 09:00:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590325220; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=HRGX3HCN6bxCPSIaDE/qylqAsNr56GDc3FbjWrQo9mg=; b=KR307JbcfekUGgHJt8a5Zvn8K5Lr8343Smzhz2WRa2rMvHIDZCveWORXk5hhwvJSN5+OCo rBVItg846OvfXls/l7VBBUPugsgeScGsF3C2thnU7ozLd0PMm2iqjS5oYDK9zbyf227dgr E8r+fB1e9kjWDOj2WfUL0osrOSP/dYI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-70-ZrB9ZQCvPWK4UMKZAHxFzw-1; Sun, 24 May 2020 09:00:16 -0400 X-MC-Unique: ZrB9ZQCvPWK4UMKZAHxFzw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 28FB51800D42; Sun, 24 May 2020 13:00:15 +0000 (UTC) Received: from epycfail.redhat.com (unknown [10.36.110.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1722A10013D9; Sun, 24 May 2020 13:00:13 +0000 (UTC) From: Stefano Brivio To: Pablo Neira Ayuso Cc: Ana Rey , netfilter-devel@vger.kernel.org Subject: [PATCH nft] tests: py: Actually use all available hooks in bridge/chains.t Date: Sun, 24 May 2020 15:00:07 +0200 Message-Id: <2b98ba50fa537d10dfb535aff4ad34b00ec53cdd.1590323965.git.sbrivio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Despite being explicitly mentioned as available, prerouting and postrouting hooks are not used, filter-pre and filter-post chains are both built to hook on input. Fixes: 25851df85e85 ("tests: regression: revisit chain tests") Signed-off-by: Stefano Brivio --- tests/py/bridge/chains.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/py/bridge/chains.t b/tests/py/bridge/chains.t index 85dde73e8520..e071d9a3c971 100644 --- a/tests/py/bridge/chains.t +++ b/tests/py/bridge/chains.t @@ -1,8 +1,8 @@ # filter chains available are: prerouting, input, output, forward, postrouting -:filter-pre;type filter hook input priority 0 +:filter-pre;type filter hook prerouting priority 0 :filter-output;type filter hook output priority 0 :filter-forward;type filter hook forward priority 0 :filter-input;type filter hook input priority 0 -:filter-post;type filter hook input priority 0 +:filter-post;type filter hook postrouting priority 0 *bridge;test-bridge;filter-pre,filter-output,filter-forward,filter-input,filter-post