Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp86621rwb; Thu, 27 Jul 2023 09:42:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlHGCoi71hA35njkgV9OC4fUpdnBFcIwIcXejGidytCYK21glPy++1QEakybFwagGvMKUKKS X-Received: by 2002:a17:906:7a46:b0:99b:cf57:11e3 with SMTP id i6-20020a1709067a4600b0099bcf5711e3mr2516002ejo.59.1690476123411; Thu, 27 Jul 2023 09:42:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690476123; cv=pass; d=google.com; s=arc-20160816; b=wppUJudcv/An5yfiu363V9f8LLY+zX8bNdsqdT0tAIDPEfIp9rXyWTaEaenSoR+5tD maYh9xMyWnctG7z4zm/kaAZ5CJQEEdDLEB/aLJkv0bzAh1i/ZmXod7dQ+qoUSLpcLu67 TjU9FecEBc8fKSENP1JUYDLXzxi6WvFRrizQpVozql16Hvo7ADw6S/91gXeUlfDsA6Q0 frIWmhGY/h0TZspuHe8keL0FHhfYonzF7YWiqmIdh6KZS80fdlpyqGlQ38vI5e+Zqtsf u6+WMY7LKrJZTllcQrN4/I9dok6t653AV1kD+PxV9SBudfZ0gaQlp2JAH6bjF2wfQvhT 95pQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=F9BPossyxiu3GPrzMmSXY4slYI+6J6waCQr4n3sia/U=; fh=ifRDo+9hbIq/Kb8HAyaPM9du5OxrDlB599Q9A2MRBzI=; b=kBcZT3EDvVyLMLDaLS7ScoOIY6LjCAFW6YD6oQOso6fPWqMce8/zrnMttAEA6o9Pv4 4UyyxtEUdXSxNqsFPVetybBuTttdlhMpvXCTeqaQ+0vcHcPQktFcAMFBuFyH2z31Wf+C dGg6Wi5lyL07/S95lO7hzEnG//ZDvTEd/DyY5FU+DkvzudxIZKXvHQhyJ+yaHDjKK+t+ XQN7LkqC93kzl+zSBh3qH9W4kyQ2/SoZQs5kgTu/IV9xIk3Ql87UMgTxAmBlEC7pLP5P nIgeO5N8BipqAdnl16wC/hoEfA02R/YK5WjIaomWZbZS0QomskV8K+8u2RytSfLbRYq5 E8Rg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=szsiwFfD; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y25-20020a170906915900b0099bc9dfa042si1129845ejw.470.2023.07.27.09.41.38; Thu, 27 Jul 2023 09:42:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=szsiwFfD; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233484AbjG0QVO (ORCPT + 99 others); Thu, 27 Jul 2023 12:21:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232825AbjG0QVN (ORCPT ); Thu, 27 Jul 2023 12:21:13 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2079.outbound.protection.outlook.com [40.107.92.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 937282D4D; Thu, 27 Jul 2023 09:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HAyFIc0+s340FrSS33x+Ep81mtw7rFUKWWKAJlklsNJ7NdRVmJmj3CqU/iak199eGBoW3RzqF9hfsKyda4IEFfYR9Rx6Uft1pvQeHmplaLnD0KM9gizq3Mt+GvNcyUg4rIAIw1hV8UQzgcp7caFqbuzaKZGoHPNZXtToJB6scK0Qa6vTTlCNTCNQGt4EU9YFCPOls/SHCRUfJ0iTRAjW0rKu6iHAsGu++9XS8xIKSdpz0uIX4AeH5IsmS5+eAv7ZvUgvDlLYLpHLmT9rhGl9DoPfRD5p0VqFzIhxjN0DDvCNrYOqnPLkAPUl7xv1I4fW7AeRbKBcOlmixP/xg441Ng== 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=F9BPossyxiu3GPrzMmSXY4slYI+6J6waCQr4n3sia/U=; b=GE09Ki9bCH1RN0zJGklEVsfkzXjCm7cVxyMhOD9cBW5j/zuQsyAVKt8WXMAEGDRpR9AcM8JNebeevd9Bw+Jd5N8kVGiFOsugfGrtL0ruJASLN2u4nOBDD7SDECMGJZ2WffBypBbOLoAIWxBDrefO2Ul4tHvB9cLiIutmwjDqw+tDRu+N3aJmWEdgAPWmHtbfjUJ80a3oAx0l8Ztsae9c227PV8ieW3SVCQ64UPFuoZjsOy97MVjreHXpEu9RYJ89tMv0hsGPVPfpGgDGGTzW2Rg43ODJUYzQEccJTcdVhVO4Bifit0XpXSfVKOCfMmxSznIRTdzTv/v4RDq6WmuHHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=strlen.de 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=F9BPossyxiu3GPrzMmSXY4slYI+6J6waCQr4n3sia/U=; b=szsiwFfDju0ux6jFWvVSJKUNyhLVkyNB4QhWBaXWVO9nszAsXBXNcEPhqbwb/atHzIhAdk2RDMID7gLuj3kzkA2ogVj6p0Nyy95C1aFUoCbbV9ZR/YhEZNJrItZtVjXEqT17H9Lf1IvW7CtXxcMAt4LAZwGO9wV2QUrkglfdVA1W3BHakqloupYHJV4NXj8txynPsqI+mSYCM7E9dV7gUgX7UXaDQ+orVs0qHOZR6a4fWj0ug8nrqZtjMAxPQCbxyrq5wLbnOddLER38DPm0ZRUKLRYEuLCZV41dKq2qwYzdBcBfzjTONnm3Vrgu4pMw1mS2Yi9z3p4RJSZVsHNglQ== Received: from MW4PR03CA0241.namprd03.prod.outlook.com (2603:10b6:303:b4::6) by CH3PR12MB8903.namprd12.prod.outlook.com (2603:10b6:610:17a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33; Thu, 27 Jul 2023 16:21:10 +0000 Received: from CO1NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b4:cafe::23) by MW4PR03CA0241.outlook.office365.com (2603:10b6:303:b4::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29 via Frontend Transport; Thu, 27 Jul 2023 16:21:10 +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 CO1NAM11FT019.mail.protection.outlook.com (10.13.175.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29 via Frontend Transport; Thu, 27 Jul 2023 16:21: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; Thu, 27 Jul 2023 09:21:01 -0700 Received: from yaviefel (10.126.231.35) 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; Thu, 27 Jul 2023 09:20:52 -0700 References: <20230727062814.2054345-1-rkannoth@marvell.com> User-agent: mu4e 1.8.11; emacs 28.2 From: Petr Machata To: Ratheesh Kannoth CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v1 net-next] dissector: Use 64bits for used_keys Date: Thu, 27 Jul 2023 18:17:28 +0200 In-Reply-To: <20230727062814.2054345-1-rkannoth@marvell.com> Message-ID: <87r0otfhr1.fsf@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT019:EE_|CH3PR12MB8903:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b63d14b-9594-43dc-df96-08db8ebd7cf4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: itH2oTQcPZZ33kEJKrxCOGcmBRAX3jaiTnHFcQS/skyVYNbra7vfJ8s5CKhLIgFaPZ5wDsy3FSzBWlIfp6QgzQFWdPkEDpJkCshez/hawyTZl0/LVGRNJ6bP3mFatj38VLl7nXUj3od4p3IBhVa4VwYPvndoJHTY6hBtXR/ehRdO7QAwSYFodPwPZN3pkZjD3+3DM5yTmmoQx+jZ/8fzCKgEh/M+iqOMdAyOTjzUDbP5rooinmyakoOCJq7wlA2k81jOPAh7Np7u+Jar2azT1B52zxVblHUpCWkh83+BwhhamUWyqcC2ORBS8HPrefgNZ5GAvSRnG5NzaMIXhtJu2HKsYD/e+0g8Hg3pdNh6yEJqtZy/6gUHX+mH549OjYSuh1wZvLStXMb0aOEd6cweggz7j/BSX7d1OQ2ZnzMoTKG7MUPvxGXqp1vUOIhiy4h3uwBuzWv3fsJxCmfuk/M6JJdVMjJBYwl4yMdqd40PTBRDWn+rzzj5hoRPojE4eKXI+Dj+OLxbRDfGXRWL8ACJil3D30WXSdpH7M00Ve42eCbj0jPCtMAc3uN3AUjEO1mjBTBP/AI1lMwLpelEv7vC9p2UQLfDGLNPZek0eheO7hMVjKhTBCguIDINtFXWir0pU6Vfy2sURQK/UWJDS37nEYJUNiSH2clLnzgTlfSESZDFQ9uie+Ax+reuz5y7xpEzugGOiucPubtFtiCQnsALsCalnJoq4FNeTBO3TvnEgGj5LWJq2rOmvRb0f7D1FFeel/VAF5fguZe4cy2CxkSSCg== 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)(39860400002)(396003)(136003)(376002)(346002)(82310400008)(451199021)(36840700001)(46966006)(40470700004)(26005)(86362001)(478600001)(16526019)(336012)(966005)(186003)(2616005)(36756003)(54906003)(4326008)(6916009)(70586007)(316002)(70206006)(47076005)(36860700001)(7406005)(41300700001)(2906002)(7416002)(426003)(356005)(8676002)(8936002)(5660300002)(6666004)(40460700003)(7636003)(40480700001)(82740400003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2023 16:21:09.8505 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4b63d14b-9594-43dc-df96-08db8ebd7cf4 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: CO1NAM11FT019.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8903 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ratheesh Kannoth writes: > As 32bit of dissectory->used_keys are exhausted, But s/dissectory/dissector/. Also the subject should probably be: net: flow_dissector: ... > increase the size to 64bits. > > This is base changes for ESP/AH flow dissector patch. > > Please find patch and discussions at > https://lore.kernel.org/netdev/ZMDNjD46BvZ5zp5I@corigine.com/T/#t > > Signed-off-by: Ratheesh Kannoth > diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h > index 8664ed4fbbdf..830f06b2f36d 100644 > --- a/include/net/flow_dissector.h > +++ b/include/net/flow_dissector.h > @@ -370,7 +370,8 @@ struct flow_dissector_key { > }; > > struct flow_dissector { > - unsigned int used_keys; /* each bit repesents presence of one key id */ > + unsigned long long used_keys; > + /* each bit represents presence of one key id */ This unnecessarily adds an extra space before the field name. > unsigned short int offset[FLOW_DISSECTOR_KEY_MAX]; > }; > > @@ -430,7 +431,7 @@ void skb_flow_get_icmp_tci(const struct sk_buff *skb, > static inline bool dissector_uses_key(const struct flow_dissector *flow_dissector, > enum flow_dissector_key_id key_id) > { > - return flow_dissector->used_keys & (1 << key_id); > + return flow_dissector->used_keys & (1ULL << key_id); > } > > static inline void *skb_flow_dissector_target(struct flow_dissector *flow_dissector,