Message ID | 20230410170853.492048-3-witu@nvidia.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=k0K3za8v; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PwFnX4dfDz1yZP for <incoming@patchwork.ozlabs.org>; Tue, 11 Apr 2023 03:09:20 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1plv10-00068L-QX; Mon, 10 Apr 2023 17:09:14 +0000 Received: from mail-co1nam11on2066.outbound.protection.outlook.com ([40.107.220.66] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <witu@nvidia.com>) id 1plv0z-00067C-2T for kernel-team@lists.ubuntu.com; Mon, 10 Apr 2023 17:09:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CANJ5ol8DlXlAXvLdNoP05sgW48rooOdXlOlIK6tQ3Hd1gDjXuoC8KLtDd2I1xeq+SjMxNaTsjiLJVL99xLG18lo/JyuQWqff480zy6MKHJlF7fe5C62k994uxGkWG8LnxfxiUdQnai9FAfDznQ11qZVmGVsLgpDqs8Ld1+8pmmLPgjxnbtCSw2Y0DEcEPY6QYL1lffs/ORtlHsgOpglBrVHm3rZQ5rEPJhB6DW/QGyvPqb0R4Q1j8AdH9F6hvXYszYRpm8hDW+OE46y9d5X2aAGexouq3gSrcIB6bu4SilrpRU7LLaBcWSip93ul3Ld21DUyOkL46/3bWIBTmYzYg== 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=w8Da5YuFy6VcWfMXETsAStk4W1hGYiWiRAhdoz8/dvc=; b=UFu+4rV0BSfkmsK0JWaZYD+D8aWqB+HoQ2x+QAH1VRGyXJ+NWfyPpYp7wwtB8yHdg570F1X6isbscfO58J2DRW/NN9gaIrTG7emM16ma/T9jIIsGJIzD3FHkeyGpKW+354Xdmdi3B5e2prDXxGJTBdrI0GX3wwFhCSbmzm/p9BCeveO/cyd9R2iZCdsxFI1+gZjlRIVYKiMOzt0GulVrDQIT8LdY00Hw3fS24IZRyuHJZViXti2c6WgwmMZ4Ga92sV3o7L1I4t/fzPb+2AMz0kjFoIxQkByaVnDDhabrFSrKolRKfANCaJkeKDrsCEqQ1+bO661Cg7SpPBYrXlKLqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=canonical.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w8Da5YuFy6VcWfMXETsAStk4W1hGYiWiRAhdoz8/dvc=; b=k0K3za8vueL5mlqYi951iDmt3uI1v3V+QktLw9ezSkUqfze6ntQbUzsSN/KCR2uVd0WgkgZrGNbZ3Co1jf7VseYzQVtvhUUa/QgubwPDFewv/n3cphf0acMfH2bPesizAc9zYw7zwuvdB6pBiwLEm/Dsnd+IlHyT9azYX0CDjMtCNE1m9cBw2Srl5CEbDEgp5qMOkVOVwra8DvLaCm+iQ6Fu8rQcYS3q0YqqvC1ZPTR6evQJlzOohU+ddMtQ7ccgTXyhRb/kHqbcIRoQ1s64hlyLJFblK6a58lMtt5Z0qQ9q+3RVN9cr+qaMMJEE0/gXX5Li7ysRq0rJtZebty6WwQ== Received: from DM6PR13CA0016.namprd13.prod.outlook.com (2603:10b6:5:bc::29) by SJ0PR12MB7459.namprd12.prod.outlook.com (2603:10b6:a03:48d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Mon, 10 Apr 2023 17:09:10 +0000 Received: from DM6NAM11FT091.eop-nam11.prod.protection.outlook.com (2603:10b6:5:bc:cafe::6a) by DM6PR13CA0016.outlook.office365.com (2603:10b6:5:bc::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.25 via Frontend Transport; Mon, 10 Apr 2023 17:09:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT091.mail.protection.outlook.com (10.13.173.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.23 via Frontend Transport; Mon, 10 Apr 2023 17:09:09 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Mon, 10 Apr 2023 10:09:02 -0700 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Mon, 10 Apr 2023 10:09:02 -0700 Received: from mtl123.mtl.labs.mlnx (10.127.8.10) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37 via Frontend Transport; Mon, 10 Apr 2023 10:09:01 -0700 Received: from sw-mtx-002.mtx.labs.mlnx (sw-mtx-002.mtx.labs.mlnx [10.9.151.106]) by mtl123.mtl.labs.mlnx (8.14.4/8.14.4) with ESMTP id 33AH8sK7032232; Mon, 10 Apr 2023 20:08:58 +0300 From: William Tu <witu@nvidia.com> To: <kernel-team@lists.ubuntu.com> Subject: [SRU][F:linux-bluefield][PATCH v1 2/3] Revert "sched: act_sample: Implement stats_update callback" Date: Mon, 10 Apr 2023 20:08:52 +0300 Message-ID: <20230410170853.492048-3-witu@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230410170853.492048-1-witu@nvidia.com> References: <20230410170853.492048-1-witu@nvidia.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT091:EE_|SJ0PR12MB7459:EE_ X-MS-Office365-Filtering-Correlation-Id: 88aea20f-520c-4482-bbc6-08db39e64ce1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9/58uuZ4DgttnArLJp0o/dDZfyUYj6H51eFlDdG1pBQJT3i/mVojiGvVXlkozSyAt7hJyzHWVcHo6FSEjTPxNERIFBxOxIfBSPxRMBjuEJfIvzMEqhWHzR8CUUX9sK3V66S3s4ZfWtY7LRmffCQRUirtyRkpYb7oFwX6Ff4dPQy3NkL/aWfrYfvC6Up3bHLEr1/CSnoDL2Iq4GBrA1UmYrQTj84Yo4QxAtJcdMnm32TOCYTJ2T9pX0uUTbC2X3f80RAqIypX2SeWLFkAmb1ROw5iIuhmzeyiyXvumFFYwfU+Na9lNBk0UacjMlWOb5yiiHQ3nHY9o/6D9tXmiuGD6+AjjrdvOgEOzZF1CLrLe2XBugvzruvXrcyL8YbUEyQz9rr/KYMNDipL2+jHNUEV5+rKZax+2GDL5GJ0cP7Ck7U3uQnIOadhGAlqFIfaUd8XVy06zivsAyfFprlytCXuia+6HBGtcgqEDvn4yR83wzMwYDeS6WhtnhBm2nbyFtiY3gfRyeVuymhM8LpHxfLPmuSyU4gQusAHa0YmvTyUFUkhBvBRtzk1eQJwiXcAUhxFnecwgFP6yyRk4ynKVP8gp4LLnreDqhPuI3I75eLH2dsrZnBEMUT7YE9PvlY/qjyMJpJKochUJXnHtETRddVXvS3F2H2T46JHHlSBhbgY9hcFF93BrmJIqzWMB7PicM9xSsGr5ORfpS7ZgMBC/iDs6SbZ1yphtlY/X66wdnkw8mFasGp63hFoMTKz2A88uX6F X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(396003)(39860400002)(346002)(376002)(136003)(451199021)(36840700001)(40470700004)(46966006)(40460700003)(6916009)(4326008)(478600001)(54906003)(70206006)(8676002)(316002)(41300700001)(70586007)(86362001)(36756003)(83380400001)(2616005)(336012)(107886003)(1076003)(26005)(6666004)(2906002)(8936002)(5660300002)(82310400005)(40480700001)(36860700001)(82740400003)(356005)(7636003)(186003)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2023 17:09:09.6774 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 88aea20f-520c-4482-bbc6-08db39e64ce1 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT091.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7459 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Cc: dann.frazier@canonical.com, paulb@nvidia.com, vlad@nvidia.com, yifeid@nvidia.com, bodong@nvidia.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
Revert Support hardware stats for tc actions
|
expand
|
diff --git a/net/sched/act_sample.c b/net/sched/act_sample.c index f04ac8c4822d..ee3cefa180be 100644 --- a/net/sched/act_sample.c +++ b/net/sched/act_sample.c @@ -194,16 +194,6 @@ static int tcf_sample_act(struct sk_buff *skb, const struct tc_action *a, return retval; } -static void tcf_sample_stats_update(struct tc_action *a, u64 bytes, u64 packets, - u64 drops, u64 lastuse, bool hw) -{ - struct tcf_sample *s = to_sample(a); - struct tcf_t *tm = &s->tcf_tm; - - tcf_action_update_stats(a, bytes, packets, drops, hw); - tm->lastuse = max_t(u64, tm->lastuse, lastuse); -} - static int tcf_sample_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) { @@ -290,7 +280,6 @@ static struct tc_action_ops act_sample_ops = { .id = TCA_ID_SAMPLE, .owner = THIS_MODULE, .act = tcf_sample_act, - .stats_update = tcf_sample_stats_update, .dump = tcf_sample_dump, .init = tcf_sample_init, .cleanup = tcf_sample_cleanup,