From patchwork Mon Apr 23 14:23:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 10357161 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 EB283601BE for ; Mon, 23 Apr 2018 14:24:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBDFC28B14 for ; Mon, 23 Apr 2018 14:24:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE25C28B17; Mon, 23 Apr 2018 14:24:30 +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 74D8628B14 for ; Mon, 23 Apr 2018 14:24:29 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40V7y33rl6zF24w for ; Tue, 24 Apr 2018 00:24:27 +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="TTlby7rT"; 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.1.49; helo=eur02-he1-obe.outbound.protection.outlook.com; envelope-from=idosch@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="TTlby7rT"; dkim-atps=neutral Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10049.outbound.protection.outlook.com [40.107.1.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40V7xy1fGbzDqvH for ; Tue, 24 Apr 2018 00:24:21 +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=IIf8PNKRqX2j6aq2H6ce9OfjFgXEQ/Gz2NN8NiWGHFQ=; b=TTlby7rTMCa0t2C9RqT0BTMTya+ohurMW92Omn1RedURm8wsmO+AdgJuA+JXIidDyVHL0EnJFZxArMfqIJhuIJznji4/UQP/eorned68QdbJD6ladxz4TKIW+vpO7gCGQloPi6jveZ56fS0JoxOEsbsgFcycloO3fiTEK5f7/sY= Authentication-Results: lists.ozlabs.org; dkim=none (message not signed) header.d=none;lists.ozlabs.org; dmarc=none action=none header.from=mellanox.com; Received: from splinter.mtl.com (193.47.165.251) by VI1PR0501MB2335.eurprd05.prod.outlook.com (2603:10a6:800:2c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Mon, 23 Apr 2018 14:24:15 +0000 From: Ido Schimmel To: linux-mlxsw@lists.ozlabs.org, mlxsw@mellanox.com Date: Mon, 23 Apr 2018 17:23:46 +0300 Message-Id: <20180423142346.30213-1-idosch@mellanox.com> X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: VI1P18901CA0024.EURP189.PROD.OUTLOOK.COM (2603:10a6:801::34) To VI1PR0501MB2335.eurprd05.prod.outlook.com (2603:10a6:800:2c::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2335; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2335; 3:Ess51/wMZuRtJ1CMj6qPtb35ddpkaaoio86usv6SuH9G/Dzeu9StrrfcbVN9hsPNbP0zyKpxUoD2oXDjt21WeXjB/+/dY/2sfXScXtS8+prSkrn5cdnLntl0UHc7YCWeGJF9lO3S66MzlXOi5zdXevd7nl/UI87T8iFMWnrCAp2dRfTpYtWf6k84P17dki++OssYBe12tUpoJ7zv5PqNt3O3NirJu5CE9uTxBqi0XhelbZ/d4pQvbCDvhShtdBrc; 25:BNrRIrouww1mcUZV/v/o1VumK30uiy4jh20Yt3xWWKIojwjJz2fElJzZFC7mnlRr7arr0CYXmWxWNmibkmtE3aoI5xMhMKbPHlV9K2VMdGum/zL4K16MyHU4WRq3GMLcs0GCgnNisbyB2vkFlySDUAeNQIcvdhHUQsW5qfNU3SstQSzpi6tv9iYgidW//YVb0bml8WGYY6N+BOGVcOu+WB9U1ZiVNF7BJeFrCjFDgvb5y1yiinFAsYb9Fm8zGCCASddykDd2F3DZGi3KSYCyxQMuEVlCCirzbxLMck3z3VsSqCS7Wmf6bl0VtkYgSjLZvMTHY9PTbVj5VQV4dUU+Vg==; 31:A6k57ibzNphGnH5txEkp/1fpIJfA1ZlBRg8sIShXXuQ6qDqitqNcpkb47RHQQEBYLobv4ANj+f3Tw8u35xv+9C8tZ8Bejxa1RV0EsL3uBkUfe6HY3386HVXobJbNYRoaQ19OWSs5P0B/l0DIm0IkPWuHt0Lney4kui1XKFAIckQhrzUqLRmA8ELrq00pjqEH9NZBlNiYoG3LVM4Z8eaXVaoFdxEsiE8Rk1ruxR6PepI= X-MS-TrafficTypeDiagnostic: VI1PR0501MB2335: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2335; 20:dOhXgLLzMUxGq2VTdCtFIbkCQtwGbGr0sCnNaAQWHKkVTBykL5LZRQuEUD0tBJwX1k+1PXoys/Cy/upoO++TqNJYoe/OAMp+bpk5v0Ye+C17X9m9eBJcGQTK/+9B2CTbX+BHxQ3GTkY1WZ8zIhFmYwubvpitGGzznZHeBj6ipqbRM0XaJYFo4b4jf5/hJBaM6Z6gZ38SAgHo5BFJykF+0FHtx6B+wofSLwbneNwk75V5+5UQbUVY62Q4S2AOVZsCR7rsE4YX4NDYuhI08+kF3b4dL97L/0n0Yw7z2zx/I4WeeFmgpUTi2dWZ4GOzsixhDFji6R3yFhNsO/n9M1dm00WEqCrYZzGjxZlNaIEybN7LfSKTkoHUvbaWwu4CfWDZE07ICK6WEprU/MWte4dj3uARwzllWkKoeCQlwwBr3ZLRxKvgdOnaIg7WrHmTVn1uKmIrIOOJrlfTyWVCqyptRUTwIMNsYrag5lqfOMHfkUK0OvJ5akm5gFshwN1tbEAg; 4:1hL6vuSbUCKerE6mcxO5FImuOtowqJUrYwmv96e1UQ0JwK7r++6mUgkaraqYwxYXIVKS8luQD98RK8PB781K+xOYthKekphShHlT37zCvQCMKK2k+HM6aDUgOeNWNn4OWbN1LYX+ZjEfJ8b15y8cKW5Od2A7ZkEVb050U8uWb8BaJToeEpECxt7QIpGWNhXlqZcdwtFvhbFPqufhU6XNw1/Fb63eF6vIYB/AniqpyYZr2nyAcOXZkUQDvWmUhj8sNSOR+ADkS/aEBWkuykq+hQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231232)(944501410)(52105095)(6055026)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:VI1PR0501MB2335; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2335; X-Forefront-PRVS: 06515DA04B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(346002)(366004)(39860400002)(39380400002)(305945005)(8936002)(50466002)(50226002)(53416004)(25786009)(6666003)(7736002)(81166006)(6486002)(4326008)(6636002)(48376002)(956004)(2616005)(476003)(8676002)(16526019)(6506007)(386003)(52116002)(36756003)(53936002)(66066001)(5660300001)(1076002)(186003)(26005)(6512007)(3846002)(6116002)(86362001)(47776003)(16586007)(107886003)(316002)(478600001)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2335; H:splinter.mtl.com; FPR:; SPF:None; LANG:en; MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0501MB2335; 23:aGKEJuq9TFpccN5OVoUoF/ToyMrEAakK4AAbxZI?= =?us-ascii?Q?DoblTNWOyGX3cico3wtGMbklptSXyDLO3Qqe8iAR0b+SuK0Bsu1oFx2NxDDj?= =?us-ascii?Q?gq7eP2jb2bkwGrk5Z0iYad9VwITOk7sNys9KAknMgNHYbO527Bq2f2x11M1C?= =?us-ascii?Q?+mf5dbiwkULWqyNj42M7rI9pkQfuRLN8akTLWnxQRLzq3AlFflAgt9gwuJRl?= =?us-ascii?Q?O+eDeLXbAhi/Y3e1PXT/NCaTNYjktRWs3NHgK4iFv7eqM9kJxAAKkMpWPV8b?= =?us-ascii?Q?uT4l1ZbYM8waqtt9AJrJgYE4GaaEkG5z5unwXEQTVcsfLrhda+qFzMVY4bd1?= =?us-ascii?Q?kl3L3t/3PxtynYYNkYucCIbxgXBJ9aQcDEk6hsD/ErvBvhpenlUYd6KdabQA?= =?us-ascii?Q?kXuvPcwJmvHt9ZrDeQn2ISKQCSyukJQdDGX64tLBDrtvnSvq8Bt6R1lNuyzF?= =?us-ascii?Q?55GUaq+Rkxps36Kp83anfPOz+NptFsyrFjyxrwU+XuFdicAQmEk0Z1zkcn7A?= =?us-ascii?Q?ewmL8B9r7SpE3ywbnd7cX2+DUiwlT0UhsJh5IxCQwx0FlP41PzeBFqYYv5CP?= =?us-ascii?Q?evlq3iR6543YkUSDeQapRyxDgLtHYEYObC6Z9mlkpUJtJAs7WbI1qzTkroYV?= =?us-ascii?Q?T7N2QMKJ5vBiOzOWx/t4TA3hnlDAoiDp2L+Eh63IT7evAiv2jekh33boP9x0?= =?us-ascii?Q?c3WpatSPpw96hLidVUWRoUxg8egpEglz2UAHvSAj3yJ2MtztuWhzyLNSQTFQ?= =?us-ascii?Q?NIP+LYJVohN5lFXi5nFRmVeGgoGrp9rM6ww5UeetqxvJFxAkWEgvvPCSCK6c?= =?us-ascii?Q?mlAQpFAbZG7UWZkF1Hi5z6HYuPMbfd7o3urmfa2lK7RLGpHv2ugj3ml7JP9t?= =?us-ascii?Q?LY+OfBNm327n8SEX97nXX67Vf5967Rab2WHHRqAlg9+YHcm5QvbWQ1fxlfee?= =?us-ascii?Q?ERRvOtAYwtvu9UsMgOjv328w0L9U91W6F/BJgSly63UfhiCKW22ugycFiw1M?= =?us-ascii?Q?eQtzNoU1edbSO8NPkrvryfd8p?= X-Microsoft-Antispam-Message-Info: xFjxd6J4055+xx8uE9lsH4QssVjNNDHU9N3iVpzLom1wHpdoxCOPXE0f9qIUGqwboxaLa4CeMPiAmqXYooXq6I+FVnNZIwcd2q8gVXjwOGBNBdUMSezHVmjvECaXdW2nh2iyOJ7uKGxw/uALEKPniQyU6bfhb7mDx4JP/I2tGOmGvRgKihsKwVej2SJOjXBW X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501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KzBtOrIoYmX0vqBXKFGNzwH4vRZyA X-MS-Office365-Filtering-Correlation-Id: fbddbb47-849a-4d11-fd57-08d5a925e483 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2018 14:24:15.1470 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fbddbb47-849a-4d11-fd57-08d5a925e483 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2335 Subject: [Linux-mlxsw] [RFC PATCH] selftests: forwarding: Allow running specific tests 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: , Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org Sender: "Linux-mlxsw" X-Virus-Scanned: ClamAV using ClamSMTP Similar to commit a511858c7536 ("selftests: fib_tests: Allow user to run a specific test"), allow user to run only a subset of the tests using the TEST environment variable. This is useful when not all the tests can pass on a given device. Specifically, mlxsw does not support the 'continue' action used by match_ip_flags_test(). Signed-off-by: Ido Schimmel --- Ignore. Test patch to see if patchwork is working. --- .../testing/selftests/net/forwarding/tc_flower.sh | 28 ++++++++++++++-------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/tools/testing/selftests/net/forwarding/tc_flower.sh b/tools/testing/selftests/net/forwarding/tc_flower.sh index 0c54059f1875..7e396ccf69ac 100755 --- a/tools/testing/selftests/net/forwarding/tc_flower.sh +++ b/tools/testing/selftests/net/forwarding/tc_flower.sh @@ -245,17 +245,9 @@ trap cleanup EXIT setup_prepare setup_wait -match_dst_mac_test -match_src_mac_test -match_dst_ip_test -match_src_ip_test -match_ip_flags_test - -tc_offload_check -if [[ $? -ne 0 ]]; then - log_info "Could not test offloaded functionality" +if [ -n "$TEST" ]; then + eval $TEST else - tcflags="skip_sw" match_dst_mac_test match_src_mac_test match_dst_ip_test @@ -263,4 +255,20 @@ else match_ip_flags_test fi +tc_offload_check +if [[ $? -ne 0 ]]; then + log_info "Could not test offloaded functionality" +else + tcflags="skip_sw" + if [ -n "$TEST" ]; then + eval $TEST + else + match_dst_mac_test + match_src_mac_test + match_dst_ip_test + match_src_ip_test + match_ip_flags_test + fi +fi + exit $EXIT_STATUS