From patchwork Wed Jan 30 18:19:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Henrique Cerri X-Patchwork-Id: 10789133 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED630746 for ; Wed, 30 Jan 2019 18:19:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDFF82FB45 for ; Wed, 30 Jan 2019 18:19:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D21272FB4D; Wed, 30 Jan 2019 18:19:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 543C02FB45 for ; Wed, 30 Jan 2019 18:19:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732721AbfA3STU (ORCPT ); Wed, 30 Jan 2019 13:19:20 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:56634 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732896AbfA3STP (ORCPT ); Wed, 30 Jan 2019 13:19:15 -0500 Received: from mail-qt1-f197.google.com ([209.85.160.197]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1gouS9-0004Iy-4G for linux-kselftest@vger.kernel.org; Wed, 30 Jan 2019 18:19:13 +0000 Received: by mail-qt1-f197.google.com with SMTP id u32so555589qte.1 for ; Wed, 30 Jan 2019 10:19:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=v4Kod+YGlCFOYY4e9EVxTY6sboTZZszaR/wjp0V9ViA=; b=GrjbKsNvpaJK1XivRPqlflBQ70p9lcmZPp5ae6IIUwrNVAEsVO4Cwl8FVFGHj2VnZG WKJnl9OrR7DxAhNZNVQ8c97m1oeyDFjZ3XRfFcdwSH1R+aNN3YuqQhvPDkiIGwORmZhN d2R84YwJrD3EyoBpa+gPAqqLkZT5dMVk+RI3MozrtqEqTDm+kBji2i4IuCtpJmJGbW1w HxxhU3RXW2irfL/Z+igr5qSMC3Eoj0eYi47Llv8RDLdBEip/N7e5x8EE5GoxZvdgM2ro 04DXInl/YTicFuOQkJqOq4jIlqTupzmF7+9WhXXpsP4FeLKpQ+Y0zHtR3W/NkNN6W3UT yxug== X-Gm-Message-State: AJcUukeEIt5BlOPBvHPUBCeHbWtWidS70ihNLvqcR3IKX+DYtqkIgzWr V4gAzirHD7GDTm9BHnfaJB+jt+ckcyoEFuUyw5qF1znxoYBgrkps4BZrVjxNeGEKniHrharbX3A 62LHu4hjOqVOfsKfaLixN3B7Y5JvpSWGCc/U3YGxW0Ztx X-Received: by 2002:ac8:198f:: with SMTP id u15mr31600516qtj.62.1548872351612; Wed, 30 Jan 2019 10:19:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN7kuUcEj9oW0ogIPKT42CP7jRmiaUhxcig3TY3jeCfrNknHoI4Je/fLjzJcdsapkD/yvh7XdA== X-Received: by 2002:ac8:198f:: with SMTP id u15mr31600487qtj.62.1548872351216; Wed, 30 Jan 2019 10:19:11 -0800 (PST) Received: from gallifrey.lan ([189.61.208.219]) by smtp.gmail.com with ESMTPSA id j38sm3035666qtj.72.2019.01.30.10.19.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 10:19:10 -0800 (PST) From: Marcelo Henrique Cerri To: "David S. Miller" , Shuah Khan , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marcelo Henrique Cerri Subject: [PATCH] selftests: net: fix "from" match test in fib_rule_tests.sh Date: Wed, 30 Jan 2019 16:19:03 -0200 Message-Id: <20190130181903.16465-1-marcelo.cerri@canonical.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix the IPv4 address of the dummy0 interface and ensure that ip_forward is enabled in the network space to get a valid response when checking for routes between the gateway and other hosts. Signed-off-by: Marcelo Henrique Cerri --- tools/testing/selftests/net/fib_rule_tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/fib_rule_tests.sh b/tools/testing/selftests/net/fib_rule_tests.sh index d4cfb6a7a086..552a9784e759 100755 --- a/tools/testing/selftests/net/fib_rule_tests.sh +++ b/tools/testing/selftests/net/fib_rule_tests.sh @@ -54,9 +54,11 @@ setup() $IP link add dummy0 type dummy $IP link set dev dummy0 up - $IP address add 198.51.100.1/24 dev dummy0 + $IP address add 192.51.100.1/24 dev dummy0 $IP -6 address add 2001:db8:1::1/64 dev dummy0 + ip netns exec testns sysctl -w net.ipv4.ip_forward=1 + set +e }