Message ID | 8474a8b0db29a4b52cc7aa315e658bf43b9b87dd.1529013676.git.petrm@mellanox.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org> 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 85AFB6020F for <patchwork-linux-mlxsw@patchwork.kernel.org>; Thu, 14 Jun 2018 22:18:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6792128C2C for <patchwork-linux-mlxsw@patchwork.kernel.org>; Thu, 14 Jun 2018 22:18:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C49C28C57; Thu, 14 Jun 2018 22:18:11 +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 99BE928C2C for <patchwork-linux-mlxsw@patchwork.kernel.org>; Thu, 14 Jun 2018 22:18:10 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 416J0c75lJzF10W for <patchwork-linux-mlxsw@patchwork.kernel.org>; Fri, 15 Jun 2018 08:18:08 +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="CbgCdEny"; 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=104.47.0.66; helo=eur01-he1-obe.outbound.protection.outlook.com; envelope-from=petrm@mellanox.com; receiver=<UNKNOWN>) 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="CbgCdEny"; dkim-atps=neutral Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0066.outbound.protection.outlook.com [104.47.0.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 416J0T06wCzF0sk for <linux-mlxsw@lists.ozlabs.org>; Fri, 15 Jun 2018 08:18:00 +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:X-MS-Exchange-SenderADCheck; bh=GkfNYDblCbtz4OhZDV2T/zvaDFeJfJqpmXxqkkbMCw4=; b=CbgCdEnybZAHBodPhhiuNBlaq/5i1Los8gGEuKcjwgAYL3Vky2Cu7vXJ7l43cZiDrvABDTza76/dJcNqvtDm5RZyW1DJAbFKRWpso01PFOE6UWt7u+aQoWFEO91ujfoj0paZWkv51E0tP+1sDgl+1CwwsRUeo/UUwO4yxBBI0K0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (89.176.83.59) by VI1PR05MB4191.eurprd05.prod.outlook.com (2603:10a6:803:4e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Thu, 14 Jun 2018 22:17:52 +0000 From: Petr Machata <petrm@mellanox.com> To: <linux-internal@mellanox.com> Subject: [PATCH net-next mlxsw 3/5] selftests: forwarding: tc_rule_stats_get: Parameterize direction In-Reply-To: <cover.1529013676.git.petrm@mellanox.com> References: <cover.1529013676.git.petrm@mellanox.com> Message-Id: <8474a8b0db29a4b52cc7aa315e658bf43b9b87dd.1529013676.git.petrm@mellanox.com> Date: Fri, 15 Jun 2018 00:17:15 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [89.176.83.59] X-ClientProxiedBy: CWLP265CA0116.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:51::32) To VI1PR05MB4191.eurprd05.prod.outlook.com (2603:10a6:803:4e::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 92587736-8f83-4e9c-4922-08d5d244ac53 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR05MB4191; X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4191; 3:kLc3Fj2x11rcb23tJLh4DfKLpybIj4Vq8UQxnWzIaCjbjo7NLqQBB+lHVgK2je7qvSb+nVx4oY0jMebDrPDzVO5PAguR0lOFVnYEHaDM1fE6GjYvyAmG968P2tmHk2hW80h3pbU/2re74Jyp2X6OHvv26Ek3KGUI4zItqQTg62ezTqOwZd2LpHZhT4OMfKR9qBO2GtBzt1Fvk9vBVWbfjI0oueCu6pib0ml+joMlYWYHKhMWE8JectRCOu7x56eN; 25:EcQzxLzvPjvoYlp/S89lWCr0DeJtO7zXeaIv/tGXQKj+oVUtBsa3rGVaQv1RMlAWEY2WhtDJWbs3GcrFdeKk0hu99ak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ETOtf8FVrcptJPTY8N4TzlUhycnY9izQBgyMM/GbbH0RSkxqoXOJEViJBgyLOtzvUgyEZkMlxcl/DtNkc3HeqLhHQCCgCV09km1hDkaySWQdMXtPCQ+aUEDR5k6u82VPOmeIKnmIpYwYCaT+08XGIsUkus3a5vskoQ0bZTm/eOWahrLR8SQA9Sdo3VlPob3enLfaLpIeCXGMu5YD+wCIjyOJghCGs1/0w5dotPA+naeNs12XMRsif5Kv8z1NFxu4UUM5xjV3cLbEt1kQBw== X-Microsoft-Antispam-PRVS: <VI1PR05MB41916AD8D9AFD9C09AFD2F3FDB7D0@VI1PR05MB4191.eurprd05.prod.outlook.com> 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)(5005006)(8121501046)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:VI1PR05MB4191; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB4191; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(396003)(346002)(39860400002)(366004)(189003)(199004)(86362001)(16526019)(53936002)(26005)(25786009)(50466002)(97736004)(68736007)(3846002)(6116002)(2351001)(186003)(6862004)(2906002)(36756003)(106356001)(48376002)(386003)(6486002)(11346002)(59450400001)(105586002)(8936002)(6496006)(446003)(486006)(305945005)(81166006)(81156014)(8676002)(5660300001)(6666003)(6636002)(2616005)(76176011)(118296001)(476003)(956004)(51416003)(52116002)(16586007)(47776003)(37006003)(7736002)(58126008)(66066001)(316002)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB4191; 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; VI1PR05MB4191; 23:xmP2LwKmFIHVDX19nANLdsthPLgn6dDm4k/X5YPAG?= =?us-ascii?Q?ePSWf31dXUDPyZ54uP8ZNSJ4opO6P3mFGXFC6/q0PM43CRxgTrowD4Rasmfy?= =?us-ascii?Q?EkkNmmuvzMPtAZZoZnhuZ2rKNuBRGn2VWq36L61RJjDhJe5RGdTnyQ2nLX30?= =?us-ascii?Q?8nie40bqnkfeDTk9d1PPhpcKPFYF9DSpHI6PNlYmgM6e7g53Qihk6Deg9RBg?= =?us-ascii?Q?ip3cIp/EvGlxIvl4kl+CY145Zo36erwwyyx0gC0P69joQRWtfpaLRakB3qy6?= =?us-ascii?Q?NgdJlwbyRPS4P2Z4JiBL+ba7uaVRZEWt9zHzz09IufFoF4pYaPOFOEKn8zv+?= =?us-ascii?Q?GX/LPMsiLb8ErSWPKaxJoWRHB+vgT7ZN8lq5UlMxS0qrsTVKF1cUyBHKaYlg?= =?us-ascii?Q?uG4C7ft4VSO2vS4WsoidB69ssZOVxSD5rCDVF1MPJBPvJwxkbAbhkzV7TnKm?= =?us-ascii?Q?0fuBZxxGNxWl0D2nSZ9LUj35UCWD0udsTF4LX1/wHVOYkiWwWxgZQ+Zn9jQl?= =?us-ascii?Q?qUDvggN+1h/JEKdM0ZQuwEFMGrY0kTUy9SU6ICTfOrg0L/BHu5nXoqXpdv4S?= =?us-ascii?Q?QtW3LbkisCFxzCna8QDWuhAbhmZwSQM5iq20UppHALUzxShvtog6UwzOtMEl?= =?us-ascii?Q?vyAySjXkrxxT5rX6m8Ki8MKz82UEV911Gj/JuYl6tlzreoU2cGFvHeSq7VDk?= =?us-ascii?Q?o5Lp3u5zPd8RkctPxEVfJKS++GT/1il9yepXbyI9a8wp2uusTof1i6oxSd3b?= =?us-ascii?Q?rFsz9JNBpQ34sSRYpWSRKp5ovqidRATT2wJwUSMXKwQi5pdevyQGPIl/HY5k?= =?us-ascii?Q?p2sBEvmRvQuwcX+IFWq+1BdF1tsrsbenUGQaIJideFmz1C275COeKoLO/Sep?= =?us-ascii?Q?9Yz+kkip0tLv44Hqd4ojNszT+hUwjGCq5PJ2P6+nh6OEZaYvFTWxzhRsMFD4?= =?us-ascii?Q?cifyymQBEN9A3z2CdH+G3Uj83+X4Dk7bmrg/x2kDvQanRCPpEwJA4VvFhEXO?= =?us-ascii?Q?rgkirW3o3qBOVpYO/6caxss2jxnTTMpBmKFhJ2CuJOd8eURUMcx0M6By9skf?= =?us-ascii?Q?NnoCW81AEVVMtyEhiyL1ipIMtP2nsLUKhhRbtISSd6Q/0csmeCuV2A2aQarW?= =?us-ascii?Q?zsI/J4jZ44JHjHuWzwHe4mIBuRmO33GfTNnf9NZyOMQzSROn7NX6E0U4wFj8?= =?us-ascii?Q?g8sdP6eiI8kIsiEmtd+zqeK8XEyERFUPQuyr3iQ+pK8UpdEk5aIMhT116hRD?= =?us-ascii?Q?vtphR3bCpGgwgbCIBA=3D?= X-Microsoft-Antispam-Message-Info: No581umx9DfCysPAkKpex99imXtkN0FoEIIQXQnqu4/mMNzDOOs9bE41aaz9SC1AuFZx3q+T9BBSWKaLpl0HWpeeAOqeE7JxN1ztIGuA0FxeG9yELG+QPQLzSG5d21mHNY5HGWaWeAYOUoUZ1D1ynVEbRzGLBWrHdGWBs3806dY21RLtc66vRJmiZD3cd/dP X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4191; 6:Td1R1+zue/eqMgozDMoK4XbGfFy4hytOpQB/zpE09eE7jwdUsTtUfbWea92kV7EuZbCy1Q8gBOv3rQyctOWDtVk3piEL8s5dU8BKsMvbPX2sTCm3NZ442VSS9cP5bJ+Sy388fmIAhCsoCuRKFFcYrZn2Y+7xnABI/+eaWCEqrTTm7Afs0t2Z2kk2HBJvh+84O0YSzcUdyirrpic0f7HK6FNnCM5JNbKRnhc0fNzbAAX62PPyDtzZTfsffT8qWv4XiA96YjhCD+fdxd3OyhK8HeF02NJQGMsnRZGbrl8cizJfdsPgC8k33a6wd5meWEypTPCreqKki3oVApbc5xrSeUK85FzWzgcuowgeDoPbHylPJwLwcjIXLSrxFQyx8dP5dhtSHDXrg1HtyyRga2YBbTVSPMj/YB7Edd3zbsiCSgNkD9A+8rXJfOrSxGYiFRW4sfsrmLh4jltOnHJoLeFp5Q==; 5:8ZTtF3jvG/c26SG+PaPjez8Mm7yo+39gdwm+nnIwhSB17qQn+mhp0z93KKi/xxvRmociqIWsEGsrMgoaK5y9WVxZElELVWMPOQTfXnRnYapFP075uOy+2VON9+U8e/zJ+S0t0SRnnoTobsw3aQHn0zYQI06TQ5IdWKOdMRdwYwQ=; 24:gmVBqFbrrNw2zPE8jdxkJgZyKh7lRJRWIt/UamWiUH0Br2qZLLhhC+1uZcEaAUgKizLG1NVkzU2Tu7hwUC7NDeobwAV+gmuPnjkkFKE6C1A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4191; 7:iPg5nf/FgYSfSR++s7wbtaCfH+Z2UaMGLnmtsYUgnYEW+Tvca3jWieP0WyraLhKnFAYxz5OTkSxVlv6HhJ++mJNyX5XIu9Hbm3RVVhWKHM6IPnGCIilhpPwQSp5f8FWrKVU798f/RET8zASjgcjiGy43sbdxPv2YIFGjvaUYnbZHUQ0deGXGEykQ7ESXsUnE7qMAMX0lH6KyH/AyhQR+J4TNaD9QIkwQN9RomuupduHE2O7v7Y4+nTm0nCEyr6YC X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 22:17:52.9578 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92587736-8f83-4e9c-4922-08d5d244ac53 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4191 X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: mlxsw driver development <linux-mlxsw.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/linux-mlxsw>, <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/linux-mlxsw/> List-Post: <mailto:linux-mlxsw@lists.ozlabs.org> List-Help: <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/linux-mlxsw>, <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh index bce3df52f705..cdfc8e8b76b2 100644 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -439,8 +439,9 @@ tc_rule_stats_get() { local dev=$1; shift local pref=$1; shift + local dir=$1; shift - tc -j -s filter show dev $dev ingress pref $pref | + tc -j -s filter show dev $dev ${dir:-ingress} pref $pref | jq '.[1].options.actions[].stats.packets' }
The GRE multipath tests need stats on an egress counter. Change tc_rule_stats_get() to take direction as an optional argument, with default of ingress. Signed-off-by: Petr Machata <petrm@mellanox.com> --- tools/testing/selftests/net/forwarding/lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)