From patchwork Mon May 14 15:52:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 10398797 X-Patchwork-Delegate: idosch@idosch.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7C9C960536 for ; Mon, 14 May 2018 15:53:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DB3727C05 for ; Mon, 14 May 2018 15:53:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 624FF27C2D; Mon, 14 May 2018 15:53:18 +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=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7F47227C05 for ; Mon, 14 May 2018 15:53:16 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40l4wj3j3DzF3gF for ; Tue, 15 May 2018 01:53:09 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="uvXw+xR1"; dkim-atps=neutral X-Original-To: linux-mlxsw@lists.ozlabs.org Delivered-To: linux-mlxsw@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=mellanox.com (client-ip=40.107.3.86; helo=eur03-am5-obe.outbound.protection.outlook.com; envelope-from=petrm@mellanox.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="uvXw+xR1"; dkim-atps=neutral Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30086.outbound.protection.outlook.com [40.107.3.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40l4wZ0sJxzF3bS for ; Tue, 15 May 2018 01:53:01 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RX+uX/ZVmGXgk9X2kTf5oZ1pgN0J9YCCLA9ab5RIjYU=; b=uvXw+xR1Hk/dkXwX3HrGU9jj9nUJEy6PdncuwTOnjDbJVD37zei/1B7ZmIraazUqdmHx2xOBcOYFdu/OzwHRNinHhMhqYCQLV0rcgWPrYDUToCqjo0xTdVPD3ZPGYkiu7PVcTJMwdkhBHRma0I4xR8jxLorfyHspBwpfTSMrkzo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (78.45.160.211) by DB7PR05MB4185.eurprd05.prod.outlook.com (2603:10a6:5:18::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Mon, 14 May 2018 15:52:54 +0000 From: Petr Machata To: Subject: [PATCH net-next mlxsw] selftests: mlxsw: Don't rely on MZ's range notation Message-Id: <332b4984fc9f0bb93b49167840409e5853c0be37.1526313067.git.petrm@mellanox.com> Date: Mon, 14 May 2018 17:52:42 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [78.45.160.211] X-ClientProxiedBy: CWLP265CA0052.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:12::16) To DB7PR05MB4185.eurprd05.prod.outlook.com (2603:10a6:5:18::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4185; X-Microsoft-Exchange-Diagnostics: 1; DB7PR05MB4185; 3:JGPqDvlIwL8kyfZM841ukIpgVx8c2q2/C+fgY7IPoNsiji5CYV2B73rJfiWZtRePiCh504/ceXLP5SBgoLlI2j1HDt4oJ0nok85DEI1CqEbw1yoLWfYPDq6C0JX2uh1j+eyigweAqAg94iKlxgfWoWO+7tqIW6a9JtCKy2KRLg4/tgPRyyz46SHaCqv9uQ+/NRBGgZ2IC9Gc3KCAJGmyYTAtpixiOzVzrwzXr6EAmnDlZ0GljaU6Gm+pJZhIew3R; 25:fvQvgjskuADUDlK9OlJOrYaa5QOAq5PQHZC+i2vYVC3Crd65oNTzlwNsMd3LRSJBNaZAmAREtSIyRWeHmQrHSSCcGTixAfDRJ/db7tR2QsBoa8twkKXFqzmkSH8yQleQ4I3zUenf/j4Ufb4UpJ9aFkfzjh+f3FovVVbaaLfw6SBp39iMXQ8nYFUrNtYwvXYIlhiYbmLgUO6TfQAVG5bCIf/AvhsEZCXOiXzr8GL32dZmZ+i15dJj9G2tXm+P77GZ8p6MbVtdkmhMpBhayDXoVSObRuQHOYkkr6PCnjO2SGdxXfLmchy9r4xEmjsou31XFpRNSL3e56BJCm2Vg1J+GQ==; 31:4ZtP2eYy7D8A/S67frllDMSeaE3/I9//9YiOdAVy3jL+vj+56avs5GF9o+EtxtQzJypHEW3iOrBe1JnyVd9JIxcZpbu9a4sB9WrDwS+GYPWk75t1f/vIpGBI9Nuw2PpaNTTJwJOuGzYWzule3u2z56tBff5MsVnOznpgfBA7gFVx/QfxfDAUYNSW3jP97tX/0EcX3/+/GYLALZHjNtMFPmClS1ZJ0yWfsFduVtVmxKE= X-MS-TrafficTypeDiagnostic: DB7PR05MB4185: X-Microsoft-Exchange-Diagnostics: 1; DB7PR05MB4185; 20:iJcAUy0aJ8z0l4cQftzghkg8Gg8Ynuw+rhvQYwAhqKQf74Gk8OdTfKwSxBlnl93mUkiLr9wvbZOU6wi4OmcMW0uoZudmeKYjeTsGRQv+UdQTROd6tCdfsaYdeytZIyfPcZbh1PTROqTxo15dI5QpjE0yM6sghiAYqFSntrEFrTG6Brqq3LDHVe3fdm1r+d+aIq+x2DW+Dt7agpz/MY/veACsftyyp1FFWk69sriI4PzrRV/waxjLa2Vhb57J0Qh78AffO8B94hug7NxRWQBPgo9PKo0xuVxsJqm9FNO/AooH7lwPLhjLKNLe9FWyImPQSacToGYZI5gdbxnjHhUAgiM7hIHTBSjt9GGGf0OPUY0ugv5hG45cNiXYM0olPJ+kp8apZHWcfnOcizn+WlpBQFFTH0HsuYMsl4SDHtPBYA9ZMHZuG2/M5I0AHPtyp1yl2sBzTj7HNNV/Nn3UpAYYs9t5RyxNK0pBZbbAgZXAPsesKJDMDm13mnUKhyaCy9Gk; 4:rb8LWEjSXoyNOe3oLNdWbjU9HK88UUEIFm2SFI8AdnXhNq1gwnBfhpCKJFsxICLV5gMPPn8MZybrPtAzoYmf0bErwhlhBCjrO70bbwWywtn/bYl+9VHkXYVrtr6GZQymDtB6LsVaWiX4djh/dJrsMu4G1z9I9DjBGEWrmPcLiCEx8v6PmJGXMz88tCuQfbwQiIzTIH1Pq0lR+ty308ANvRNz1BLEr5jxJX4tYIPoCkN+sudh3r11zlf5D88Q2TaEsJ/zr++RTcUbpHPMFfgAmg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB7PR05MB4185; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4185; X-Forefront-PRVS: 067270ECAF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(346002)(39380400002)(376002)(396003)(189003)(199004)(5660300001)(66066001)(47776003)(25786009)(6486002)(36756003)(6916009)(97736004)(26005)(118296001)(52116002)(386003)(16526019)(305945005)(7736002)(6496006)(51416003)(86362001)(48376002)(476003)(6116002)(50466002)(2616005)(3846002)(4326008)(956004)(105586002)(106356001)(68736007)(486006)(2906002)(478600001)(81156014)(8676002)(6666003)(81166006)(8936002)(53936002)(2351001)(316002)(16586007)(107886003)(58126008); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4185; H:t540p; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB7PR05MB4185; 23:RjwBRkhrFWQLG8A3X7ygBuiuwLtVkXHWzonsfANfJ?= =?us-ascii?Q?6pwIQoyn2vhiDyfQvh3nDOYz21dmTkXbgp5K0pOKQ38Zv18woL1DEzX90O2N?= =?us-ascii?Q?otU3e+b3lIeFMw3qIwiRbr8nfNC33kpoQ0ZXof59oZVuRBr566C+kqRmGi6f?= =?us-ascii?Q?g7Ci9fb1mVkviySs3P1E8lm+TfbJ2LAYzR1Pg5qTYQ5Zbje0yaJ9KyIYRQdR?= =?us-ascii?Q?Jwzm9wb6qmy5Fk+qprYt7poVgFZ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GbpbOtDhDflHc3mGKLLL0?= X-Microsoft-Antispam-Message-Info: UT0sDlOSN6PZ0b2EosaZkqVxkzi3Vb/cSLsqZuvywIcatcf4mbTY4A+4pahjTdm2KZCvw1nDSeoL8VUzLHw1qdLgom2UC5epydVJl98asY1aPRqfK+bfEa+tUqX5sKXpopDHrewYUU+hB7omRpi26ka8znBVizdEH6CdEQmyneBhGnI50sAGVwFGLFCz2be9 X-Microsoft-Exchange-Diagnostics: 1; DB7PR05MB4185; 6:wTAbqCUs4kvrz60TREyzSA/owqRLpTCCMoITTGx/0tFx7Y8FGufzTE71bfBm9zyv/9rOjma6zvpQCsmL0yo7SlzS1QTwdw2og3Pmbz6Qp5Z8/ltN44evHla0UDi39wxFSQqpJ+x3HCE+bAsFRwRdDatFTxRiIo9xQuCuTniLbmS6FRXICtsiBzCcNtkwP7ncDCgB6tTIC8/gMgP6H7JMONLohIMg2dRrv5JLE6vGRBsrWD0SbemyJ+pvRYEIQIPHvI4kqGojkxqM/eoel4jH5cq4x3fhxQbU/o2mDofBCcmIvOFG7k8GHekkD+6SBSNktQpq4gI9f35TLT/CASmxmYoyByhlb+kPUGbMHs1sIejC/+PDCAjiahcFqD6EP0pZp/EjMAAFuFffeIEdXfjGf3PIvzdZNpwqb6i89Hx6IlafGm9AiyoPami/iEyQOvaDlKkiutXlFKFNQFVvrhBEPA==; 5:mkWp5HGakhVejEkRgW5o8nKwUC6jHeek20QfxKCBHy7tCdejVq60bgT9YpxfFgMuSkynODB+s5bj2ZIbih9P3AiTXWuAB2+itwHoJC12sDOVIIBc4NZEWYy9E11Y3AshAxcuCsA92hjatGsVfqHEc+w3ymVS3XrM6YcAiqy+x4s=; 24:NY/ERNjICqqLSgt1e1POJwt3cJZYUghCGmM3h0zcACYzc+jNbLoTByhvAnTX1zRlPUsGAB5dKFXPHy/v19WZbeqkZ8oCY+UlRUzqGdDNSaM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB7PR05MB4185; 7:SOTmrVcbj3KyirsTtyyRTqO8vE1AtfFrPVGbFuHvM6HElBQ7y/LOltpIdOMqOb14YusVyrLRIWz55iMxfUtM20tmkTgKwdvOSPkEBxOOturf+rC6ehj2AU2gNLiLuTYuzhgz53nHwTwPRQJbKAF4TqJt/Ngpn6EPvy1RY1zAmZuZlPQl8s8tqOPJW1hiw7QpQ2HQE4uAIKYT3XYp5iHfkLXL8qfwVgVQMKd+28MTa6eoGua3VwebkucL7PNbDGuZ X-MS-Office365-Filtering-Correlation-Id: a91d102e-34e3-4958-d2fb-08d5b9b2c18e X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2018 15:52:54.2348 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a91d102e-34e3-4958-d2fb-08d5b9b2c18e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4185 X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: mlxsw driver development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-internal@mellanox.com Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org X-Virus-Scanned: ClamAV using ClamSMTP When given a range, mausezahn should attempt to send a packet for each address in the range. However, some of the packets are dropped, and in some cases even just a single packet is sent. Just run MZ separately for each packet, which works reliably. Signed-off-by: Petr Machata --- Notes: This should fix the regression that we have been observing on r-mgtswd-261. tools/testing/selftests/drivers/net/mlxsw/tc_flower_scale.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/drivers/net/mlxsw/tc_flower_scale.sh b/tools/testing/selftests/drivers/net/mlxsw/tc_flower_scale.sh index 963f4cb..a6d733d 100644 --- a/tools/testing/selftests/drivers/net/mlxsw/tc_flower_scale.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/tc_flower_scale.sh @@ -94,9 +94,11 @@ __tc_flower_test() tc_flower_rules_create $count $should_fail - $MZ $h1 -q -c 1 -t ip -p 20 -b bc -6 \ - -A 2001:db8:2::1 \ - -B $(tc_flower_addr 0)-$(tc_flower_addr $last) + for ((i = 0; i < count; ++i)); do + $MZ $h1 -q -c 1 -t ip -p 20 -b bc -6 \ + -A 2001:db8:2::1 \ + -B $(tc_flower_addr $i) + done MISMATCHES=$( tc -j -s filter show dev $h2 ingress |