Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2681079lqo; Mon, 20 May 2024 13:06:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6p1SnWxHcJFv2bO7w5yrSiB+Vo1jvePW6689o+k6In4Kmw0NU4QHS5UXWg8wIeNPa1+LqjsofeDw7mFzN5fNoUuIC5Hm7vVIPunYOGw== X-Google-Smtp-Source: AGHT+IHsmpemOqwsxGy+cdvY2BKGMKQhSb/a1iZ3xUSOwxZbMiTlKeOi8iY8wFhC4zmPrrJECutc X-Received: by 2002:a81:4423:0:b0:615:3984:825 with SMTP id 00721157ae682-622affc3601mr285985657b3.19.1716235583151; Mon, 20 May 2024 13:06:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716235583; cv=pass; d=google.com; s=arc-20160816; b=Ggfquv7eGOS6XtuVYguBchfCALv7guT+vlvUY/OSYCvBLAveC8Tw/h7VNdf7KaVO4c IBm+qaSZydjDILV6JBWQnCR9OFcRiTGpKCzAx6PFdiZW0uiupU+LdPkIZZEOiYlGnfCl nOFhmhy0z4MUkBDDPZQnycndTQyHEyGW45iALO5q3BGE8z7DYOzpllkLWaUTfBbm9Y9v iRxZcNeNu4BY/+xxi42m/g2jblvIB+NjrsPzcjyOzaNYQT5icTfhAn+CU8qwZYFgM1D2 8PEwmacs0UFT/r4Bx37fu/DVNpYhoCe4S3UToEBDKy7ObiFzcZq5CAh6oUvzAAtF6/fm YXwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KXcQBuEjJkcM2zPf7EMgL19fpMvPGUqTBm5eaSkFGa8=; fh=nRcUDOmhNrCWnN0NycuSPTVPIyhJHBxORd2N0d3ux0I=; b=lXowOKMjqVqYDlH7CZOvFSyICFbHByabVp9Qsq/+ybGpNkuhfX+FtmHl9uYV0mnALm 2F2g5PNdNFQTK6CvCnJLKPetRvm5oWn6QKIEZfEYk6Xlv6ESE4hVVpdol2FzxwMEHBHx KyB1ifCTin1e8FkgvSvb/GAUnlpccNB6KW+WEq6NTIet6AK1Egtkc2awk1y7dJFGuoop OAlk0Kp7OEtKUhx23zIpnlDk5XqhJj/YS7y/9L2WQ84j5e2HUcfmbV12LBqa6HfddoJV 9r5KRjDz1lZdw3DS0+7dK68d+kPLzk7zCuxJi/c8EhSIERQH9ta3S9HJqUoPjIxcbYPa bSdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XU8tlNpY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43e061fb48fsi236054521cf.459.2024.05.20.13.06.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 13:06:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XU8tlNpY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D11921C219C7 for ; Mon, 20 May 2024 20:06:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60F1B1386C0; Mon, 20 May 2024 20:06:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XU8tlNpY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8492826AC1; Mon, 20 May 2024 20:06:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716235575; cv=none; b=sxgNn2OTy4tV5ERWf9hPWg84XgLcphXc+1yRs2tBHfzFIzTnTP8vGmPPH1Bwos3H7TnslEboTXiEwyDOEaL0igirNUW9tczqMoeOXCQ9ri1gNgkrZWgJJ9uinf/GdoDxmMyG6tORDw6YMNbUspnsLVSQgaj5SAfiFZk0hPzC2uU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716235575; c=relaxed/simple; bh=KXcQBuEjJkcM2zPf7EMgL19fpMvPGUqTBm5eaSkFGa8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SlALS7HY/zS8GAT6yf50DoLSuJiIouSXoD1vv3/pdGZJirWoZeEnKFeXlqaVcNgTOA1M1t14g9ppBkWl7EcTQEuOc/nyawBcJf4Vb3h7cS5xiMXWiUHslK3iBVMv+ZpU7i1SQ+ghM3b5CKZfOwaJegoA3PYXs7sZ+pxOoAJoUBg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XU8tlNpY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30F02C2BD10; Mon, 20 May 2024 20:06:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716235575; bh=KXcQBuEjJkcM2zPf7EMgL19fpMvPGUqTBm5eaSkFGa8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XU8tlNpY45f9KM6cK/uvLQNvB2eZjfVJBpAv3moZx+0ZbLwkCEhq5mTMQbvp2s2Xj hK3lrRYr/PWCkN+tLGwoo5z6lw9Ew8Rg2Lxh6vU/i1iVHYqRRI9bvb0def88afPPZc YG+cOYCu7pZtAXXDIXR3R88MtK0gk6dP6Ezd0XLt799rFQnC86SH7TETvJyqPefDLC qkq5wPp0JK/Rgpv55ZAbU8ZhpcRj+jQmkBVv/3f6vi82PZ1QwgRDgz1KvPEN6qh6mH XBajGiYZLf3X7W358WwQmpiEWxZV3FsH0Zk7tur01U7yA217XAzHjo3/UTqiM4VSMJ nOF7ZcyuiDPig== Date: Mon, 20 May 2024 21:06:10 +0100 From: Simon Horman To: Ronak Doshi Cc: netdev@vger.kernel.org, Broadcom internal kernel review list , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , open list Subject: Re: [PATCH net-next 2/4] vmxnet3: add latency measurement support in vmxnet3 Message-ID: <20240520200610.GD764145@kernel.org> References: <20240514182050.20931-1-ronak.doshi@broadcom.com> <20240514182050.20931-3-ronak.doshi@broadcom.com> <20240515104626.GE154012@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, May 20, 2024 at 12:19:43PM -0700, Ronak Doshi wrote: > > On Wed, May 15, 2024 at 3:46 AM Simon Horman wrote: > > If not, I would suggest making this feature optional and only compiled > > for x86. That might mean factoring it out into a different file. I'm > > unsure. > I can move the rdpmc code under #if defined(__i386__) || > defined(__x86_64__) so that it will be no-op for other architectures. > Will that be fine? Hi Ronak, I think that it would be an good improvement, as long as the result is a working driver for other architectures. Perhaps #ifdef CONFIG_X86 can be used as the guard. I also would suggest using rdpmc helpers if possible.