Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1045204rwd; Thu, 1 Jun 2023 09:43:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4iEpmhovr+EhINO3YlQFhMpOryW8SXK8I1Z2bm9Fy3xrPXPaXqy3PCeipkJ8ofKPVq3LyX X-Received: by 2002:a17:90a:1a1a:b0:256:48a5:4fd0 with SMTP id 26-20020a17090a1a1a00b0025648a54fd0mr15550pjk.1.1685637806825; Thu, 01 Jun 2023 09:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685637806; cv=none; d=google.com; s=arc-20160816; b=p4fiyrJEmSOFORiWpM02PK1JZUn+jPu5wtV21GWC5s7Aed+tbs3a3/6aK96MMC6HQQ PtTWdyxYR3wGy074NyJg3lg8qFfCoAwFCiOf1y+uiGITUQpFvJmdSJ333GYQKDq4HMlC 6ErQHp/sWX38B0XykFjINPRPFxRuaoGZ0hygqMySqryJv4hYKm2oYYyilZTCU5+BbZ5n Oys2UzxrLlQw8LCLYFUUuu/eQMlnhGbr39tTB9ctm5EQvimOeTRfWHMuaWZEXl4+LwdW rcbmYEUFKH1bJDZG/guibkfCqj6918LSzp+0RPD8KPDhmiu0DgD1lxovvkFu1xIU0mcH DEdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=YOWTZlqL0KURElaoxZsYWuBLrrgMViwXH9gX2PVaGAc=; b=0wxeY6dZhqWMeZIc+r3bYG1DAp7H+WR69pivPUBX2bS6GLlawNrQGpN4S2h9azJHjS kCvNJNDaxlEU0HnaNxeJwdcyhnitqAo4yiI5zIfLIrmKkAHdAH/HY6GSLP/Y+CbVfrPJ PXa2iFKuuiRkskrUwvvm8RxbPbpYshiE0xXbuuTI6jMFJc1Xeo/caG68c9+8kRjkk9Io 7fxiM33G5mWPni9GbFjdZMA93rE1Qk4IjQhUSGhP6ksGdIWS/unC8zY+CD5GBHwFZ8aP aseq4spjKl5jo+thIge4jTNrhEeA7enPeyoNDpgNjjMVR+R3Z/5WiapBvlIxg4xa3v7o vYyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q0tYBZge; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mr12-20020a17090b238c00b002533b600bbesi1342980pjb.101.2023.06.01.09.43.12; Thu, 01 Jun 2023 09:43:26 -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=@kernel.org header.s=k20201202 header.b=q0tYBZge; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231334AbjFAQZi (ORCPT + 99 others); Thu, 1 Jun 2023 12:25:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbjFAQZg (ORCPT ); Thu, 1 Jun 2023 12:25:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06F0912C for ; Thu, 1 Jun 2023 09:25:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 96FCD64768 for ; Thu, 1 Jun 2023 16:25:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ED4CC433EF; Thu, 1 Jun 2023 16:25:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685636735; bh=l+ePt2FK/APO/1bTWCYSOwRV2JM29PgMTmVaxf/Mphc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q0tYBZgeh4013ojgqKPLYi6x96r7Ti5V2Ktnt/3TYb8wgXzKl6wvhCKErR1g3LbVN wncTukwRfrRNOE0ytbgH6KBqeJV6Cfk1wzfr3vLCSxJBlWllur4x3a2lFahdGV8xuN mSJyPGFiPOhMMVIj8x24rgsBjJjsfqCkEZ1wYlrDlx8dTJEANTmJ1II4tbqGU59kXW IcH3wFd/sZoqsFf74DHZEuY2l/GJzL+fsddAXinMDgnMuPREUEmFCntM33fW9WymQc jKMgHrKV9IaFKChzU4ShLrnby6SAztN50LFv7oBLvgxmgx1PbGYVmAYBwwhVNsLNRx aexSuitIw59zw== Date: Thu, 1 Jun 2023 09:25:33 -0700 From: Jakub Kicinski To: Anjali Kulkarni Cc: davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, zbr@ioremap.net, brauner@kernel.org, johannes@sipsolutions.net, ecree.xilinx@gmail.com, leon@kernel.org, keescook@chromium.org, socketcan@hartkopp.net, petrm@nvidia.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v4 5/6] connector/cn_proc: Performance improvements Message-ID: <20230601092533.05270ab1@kernel.org> In-Reply-To: <20230331235528.1106675-6-anjali.k.kulkarni@oracle.com> References: <20230331235528.1106675-1-anjali.k.kulkarni@oracle.com> <20230331235528.1106675-6-anjali.k.kulkarni@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Fri, 31 Mar 2023 16:55:27 -0700 Anjali Kulkarni wrote: > +#define FILTER > + > +#ifdef FILTER > +#define NL_MESSAGE_SIZE (sizeof(struct nlmsghdr) + sizeof(struct cn_msg) + \ > + sizeof(struct proc_input)) > +#else > #define NL_MESSAGE_SIZE (sizeof(struct nlmsghdr) + sizeof(struct cn_msg) + \ > sizeof(int)) > +#endif The #define FILTER and ifdefs around it need to go, this much I can tell you without understanding what it does :S We have the git history we don't need to keep dead code around.