From patchwork Sun Jul 3 07:36:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 587943 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFACECCA473 for ; Sun, 3 Jul 2022 07:37:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231726AbiGCHhL (ORCPT ); Sun, 3 Jul 2022 03:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231351AbiGCHhD (ORCPT ); Sun, 3 Jul 2022 03:37:03 -0400 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20088.outbound.protection.outlook.com [40.107.2.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F3089FF4; Sun, 3 Jul 2022 00:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OjPMsrTZv3TNHdOsW47KzBG4xB4zUfUVRpsxZ+TJPb5YyKY+2Cq8a5QMl3s3//8A90k09aW9EAWLY38UDuikBuDj65FyWX7oVy4SeQRlE4vw03PqsPC8VsnZTzlEWW7Ijglit/1hnjRO40M+cl8yW5RpOJKaISHW9nVEdrSEVCm5vThqU1sEtZlzu5VMJNVfI9fiTwzpTHWwYqS5vKBOsgYQJRFYlzO3xmMb0SaE0f23ef5GFTzeZxYxqb/xG7mBtIp6nin4SGw/w4Qspio+kWBTPm0AkbMrtczKW7lpzjCspTw7NtmUGiB6rNnsClORMUNWKVjbPYMIEqNCmVpL0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CzZDA8KrFHMhyX26+iKwL9mPxZ7aibS3vTUuyU7rt8U=; b=TxDr2iwq+Ni+iG7QyZqCU8EpzQ8ZgF/lkcfBBICXmr8DH9gAnaKpHZ5fpl+B8aBXZV2mBoIMRgMzxYrclmUJ20EObtZ3W4jN9VGw8twejdujGr7QD7jlSUNoD+ZOqs3ud0URFDqHOVzMwC9rqmWoXMV7QQThtstUAxx9me1AM7fv6sdk2afs3OiWv3n9Yvqqj6ed8jXYv9CETRz0KrLhGTyf6AUqPRNAkX+k1KzbRJ4bW6vqMDNyQom98OpCLxnRoyrZd8/S4vYrqUvOFLzlh33eqMZ7YeYY0aUMu0zrapD5GYa6FBSSePS4d+V/JAM8xiRazK6EcBemX3HWKrQdRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CzZDA8KrFHMhyX26+iKwL9mPxZ7aibS3vTUuyU7rt8U=; b=oLmDImlZ+Qyu1VsT4I3mtCHcDVuZgmK/HtDdVGkQQIInluM0c+X649PEH1qTK20oMfTlGWRN/DU46fLMdBh6E4edCWAsRJzWGCw4QWYu1no3BCk2Z7fogpN6FSzE1y92+YFPRCvwgaj/XHY/D33XdjZ+1wxoxQt94Slxe880P7U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by AM6PR0402MB3877.eurprd04.prod.outlook.com (2603:10a6:209:1d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.19; Sun, 3 Jul 2022 07:36:56 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::71b7:8ed1:e4e0:3857]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::71b7:8ed1:e4e0:3857%4]) with mapi id 15.20.5395.019; Sun, 3 Jul 2022 07:36:56 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Petr Machata , Ido Schimmel , linux-kselftest@vger.kernel.org Subject: [PATCH net 3/3] selftests: forwarding: fix error message in learning_test Date: Sun, 3 Jul 2022 10:36:26 +0300 Message-Id: <20220703073626.937785-4-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703073626.937785-1-vladimir.oltean@nxp.com> References: <20220703073626.937785-1-vladimir.oltean@nxp.com> X-ClientProxiedBy: FR0P281CA0018.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:15::23) To VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e87ea527-fdfa-4bf3-7a33-08da5cc6ce49 X-MS-TrafficTypeDiagnostic: AM6PR0402MB3877:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KHc20ImQEzsfqO7uiSBJ0NU9H8v9FjDrimFR5fZkhabzT0ADxywl737l1GvXiIsSyiDgg3WBq1Y26SQzxr5IeUMoAZYritD9VUyWy+48qVYg2mOTLzDfGZVgbNclanHwrlq/xXTsRXAWV06mIA+yRh9zdoewxZqBdMxg2coVbKxD3jAEueOj1ftcPrAWfDWKJMEDXWMIENyPgnITk+rig4W1weR/ibd3/fZ2Zp+RmX4OfUNZNU44BY521VBhuniSDyVI3YOgdFUpOEhkw3v1iYjJNuXFZGLONxZoZ/xzxOpG1sO7+6Fw6uJIa6tsKosk39htO5jslBOmksm6++aPZKLlfGXp8UA6bdVbh/Nmiz0h+6WFEHUxXePxtTjdlC4VoCW63gHZHH2ZGmYcZYf7RWBo239DuzvW4KeIJw/j5sdr5IZoTBE76L0PtL0ywPTD05VY6gwCSfjT6ZpTF9LlQ3AxFVibLF37HAHW7h+1WrVyvFERbaWXZLJVhwW8OPv5To3qow9t2oJcdM9JS4AdeOmSOLdyXk090zTMyWHFA5/HHJ9H+DR4GT6izJwXMDxq5Pw7ny6tAOBtPQuLmPiVfyzzeofL/1li125B/SjrMiTzdZy2lfmKs/wLvCt9SMqq5qSBPBPFyzrPcRuT3ze8YwfluJ0lgb6x3RglEy1bJtA/LrYf68LCConFfkiI3TbE1lnetMJwhyZm2aSiuEJiNskgGxFi9VRIiDB44BwaxRrHBLwoTF3l0AKNjn49ZMg8hRSqStQOYkTOCXyWxE4mXQ+u9Ko40NCgvkeETnkKn2jKhUfJhi8cSRn8w/G743J8 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5136.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(366004)(396003)(346002)(376002)(136003)(39860400002)(2616005)(1076003)(5660300002)(8936002)(6916009)(54906003)(4326008)(8676002)(86362001)(316002)(66476007)(66556008)(66946007)(6506007)(41300700001)(6666004)(6512007)(26005)(38100700002)(52116002)(38350700002)(6486002)(478600001)(83380400001)(2906002)(15650500001)(44832011)(36756003)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4dwT+qylElaVubg2RGa5qWKBEPK0hh5P9LWMnkdswlCno4z0CkWrbKCuIAan9zoM2zL7u31BZKOBkrMq5zWi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WeZKVP3Rv7SDdX96gdyDMOjK2/ImZd9HJ7Rv5UtkmDb2Q3hFj/F0j8IIxcCvUKZgaU1+oGjdigDamddrAtOVOF4x0GRokex3rGEQcfPCjhdi770nZXYx48xQcSHsd2iwalE6tELMSWlokEaGUbEAafBq7nwz2bUqWGnNxVomgUcoDuHjJAf2xEGNEdoruXzZPeu1v+Mck7JkddWo9AwDaP6NsG3w4OCyhKdZt99kuXlqnZAP3GYbtKlTMCrxSK9Xln8ZBEyBmJJ+W6Lao2Nmmo4jSDbzdS91ilIg3hAKwoBNfHVet1eGT5t5wcOLWIH/G4RDcBVUhetC1ogLPUPqmW9+dOdUBagVAVbh8/AJ/G5tzvAeLnicM8KaN4PlUZJ6s7aqNSwtHuw7mSvixndAifBwhODcZpwlzXFW4iAesS0r4d7JrM07Ii5yvDluCPvXCBLC791jTIK+2lP4fRSMw1g== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e87ea527-fdfa-4bf3-7a33-08da5cc6ce49 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2022 07:36:56.2423 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IDoNhDuWlnOb0Slio5sXKNWP1QCYQ/xlwXpewSaelEFjpslnYPI+Ec5k/hfMDzfidVSlHj4llGOJ8FtztKDg0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3877 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org When packets are not received, they aren't received on $host1_if, so the message talking about the second host not receiving them is incorrect. Fix it. Fixes: d4deb01467ec ("selftests: forwarding: Add a test for FDB learning") Signed-off-by: Vladimir Oltean --- tools/testing/selftests/net/forwarding/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh index 26ba8b5d264a..3ffb9d6c0950 100755 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -1251,7 +1251,7 @@ learning_test() tc -j -s filter show dev $host1_if ingress \ | jq -e ".[] | select(.options.handle == 101) \ | select(.options.actions[0].stats.packets == 1)" &> /dev/null - check_fail $? "Packet reached second host when should not" + check_fail $? "Packet reached first host when should not" $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q sleep 1