Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2155466lqt; Mon, 22 Apr 2024 03:09:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2wG7jBhTtmYAkbqJjqjoTeTplYNiBHhCp83gI1fRuvcBwWfQaRJ6cgsVyRaizrIfbpf/vSf4xHqis11OPYYEz+Os2r41NmQWajDxO8A== X-Google-Smtp-Source: AGHT+IHOxgaNHLPlgRopDCj8n92TvM3jUNWWLelocweXdRivVy1JP1+O43ZXbjc9NObETgKdiiIF X-Received: by 2002:a05:622a:5c9:b0:431:3420:f60d with SMTP id d9-20020a05622a05c900b004313420f60dmr11062471qtb.42.1713780576779; Mon, 22 Apr 2024 03:09:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713780576; cv=pass; d=google.com; s=arc-20160816; b=Ll8xLP614qPnk2SA6TPWaxwvcIdspGCSD+XPv0mISpBiaxkyY7gJSjlZqg4qtWzqlj sFpgSppukyGcNmkaWKBIPAIPMb9BgZpWx1gRxDecscJEB0M1B5d/kj8gl0hWZZvGHCQL rGmgS2Lkn0mW5cu8M99pv8fpnAiPJGW8la0Fxj5XXgIJuO+zS1/0JHeod8vDJnIMtg0N 7o2cKacbnXsSdJDfyUf4oU5jLPsOLTbN6WmmZIpYT6BBQIFTTPaNy42voAoNCxRa3DRR bZ0Kf70X691DXlq0eORq7RMCqs6dlnER9MtIZb5UT20XRVUeZiE2sexI+m3cCMFZvihB CUvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature:dkim-filter; bh=p/91VOpGr+sXlA4jv/RAoPR3l3/fwg6j5nhp26gdg74=; fh=Vmc/GcnDJcCSYsOcd4tn0gzgMlmVbkYdzWpCujaTbf0=; b=G9dTF+YmVVQ6tK5F+6fyvfBk4TpPslvQryG0FIBvRtWo0mJ717knGyCFJXNvdiw88h BGgBxV4B8GXOTWTyg2gDP+Z8fer+XXpqQpUY2lA7gFzpMXGL7ZltkH157TLLXAJlV/fB ggkpNv/cZ9ujwPOiZ9InnHKw/h3GfWyOqX4EnF6eTkmuAPXxmp+WTXbWE8XFGsGBQCdk Xa5yFRMZ+uwbb/4GwDgbJ+ayY9Uoi8LZfB0O++tIZe+3pTQwRx2FtU9tjzS6Pz3lffcU A0zXKlMiE72XiD8H+hAnYbiP/CGxgMdz8339t3wbsSJEs3pAl+BX7k3jubONSKAKiivL SC0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=dPP0TSga; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-153154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p1-20020a05622a00c100b0043643d1bd3dsi10076019qtw.14.2024.04.22.03.09.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 03:09:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153154-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=@linux.microsoft.com header.s=default header.b=dPP0TSga; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-153154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com 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 8253A1C210F2 for ; Mon, 22 Apr 2024 10:09:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AB8113E401; Mon, 22 Apr 2024 10:08:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="dPP0TSga" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4195513DBB2; Mon, 22 Apr 2024 10:08:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713780496; cv=none; b=mmYY5cOt2afxKbQQ4kPyaE0FACOgIZOXvDlmRlNfxzrsynY45kSLQFBudmobIGUiB1siFqRU9eS4P+G0SaARxVvXttNnWcOaqY6C7EY7oNAWPD1AKh2+lnuJQQpnosYdAaArO9wxzZQx7TLJyuPpTgK/pxDWcSAvGu2icbiVnRQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713780496; c=relaxed/simple; bh=5t1Bfop7a73SP2Xoc+JjPX3eauf9YdecV0ZqhsEjPCA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BuVBuBEZino09RyhkDxIP2acCOjRvDSwGJGjunQk80gNsJG2ypDsgxgzlpO2fy3w39zcBOZcD2XdKl0Fq6hiAYcVt1JnjBrM6QxWCuQ5eS5OI8gQeMPAaH7E63SE3jFOvfhtwhnlHJgWR5kFsFR/rZRUvGKEey8nFXYGOJPUm8M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=dPP0TSga; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: by linux.microsoft.com (Postfix, from userid 1134) id 5A40E20FEB70; Mon, 22 Apr 2024 03:08:09 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5A40E20FEB70 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1713780489; bh=p/91VOpGr+sXlA4jv/RAoPR3l3/fwg6j5nhp26gdg74=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dPP0TSgaJivoAFhSsrYk9liFUNizFn+wcBwR9iR/96vvpWhIJ69DCFlE4IpyE5UuF 0XveB92uwHC46KXjCMY1uBItDd0eSw0IfWb6BHVAM9EH4fQ6s9Qny5cJhpK2ClRmmL nxtJWq6M81hbyyDZt/fiDiPALWzxvP39K2cVGn94= Date: Mon, 22 Apr 2024 03:08:09 -0700 From: Shradha Gupta To: Andrew Lunn Cc: Jason Gunthorpe , Zhu Yanjun , linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, Eric Dumazet , Jakub Kicinski , Paolo Abeni , Ajay Sharma , Leon Romanovsky , Thomas Gleixner , Sebastian Andrzej Siewior , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Michael Kelley , Shradha Gupta , Yury Norov , Konstantin Taranov , Souradeep Chakrabarti Subject: Re: [PATCH net-next] net: mana: Add new device attributes for mana Message-ID: <20240422100809.GA9873@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1713174589-29243-1-git-send-email-shradhagupta@linux.microsoft.com> <20240415161305.GO223006@ziepe.ca> <56b0a8c1-50f6-41a9-9ea5-ed45ada58892@linux.dev> <20240418060108.GB13182@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> <20240418175059.GZ223006@ziepe.ca> <20240419165926.GC506@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> 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=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) On Fri, Apr 19, 2024 at 08:51:02PM +0200, Andrew Lunn wrote: > On Fri, Apr 19, 2024 at 09:59:26AM -0700, Shradha Gupta wrote: > > On Thu, Apr 18, 2024 at 08:42:59PM +0200, Andrew Lunn wrote: > > > > >From an RDMA perspective this is all available from other APIs already > > > > at least and I wouldn't want to see new sysfs unless there is a netdev > > > > justification. > > > > > > It is unlikely there is a netdev justification. Configuration happens > > > via netlink, not sysfs. > > > > > > Andrew > > > > Thanks. Sure, it makes sense to make the generic attribute configurable > > through the netdevice ops or netlink implementation. I will keep that in > > mind while adding the next set of configuration attributes for the driver. > > These attributes(from the patch) however, are hardware specific(that show > > the maximum supported values by the hardware in most cases). > > ndev->max_mtu = gc->adapter_mtu - ETH_HLEN; > ndev->min_mtu = ETH_MIN_MTU; > > This does not appear to be specific to your device. This is very > generic. We already have /sys/class/net/eth42/mtu, why not add > /sys/class/net/eth42/max_mtu and /sys/class/net/eth42/min_mtu for > every driver? > > Are these values really hardware specific? Are they really unique to > your hardware? I have to wounder because you clearly did not think > much about MTU, and how it is actually generic... > > Andrew That makes sense. I will make these as generic attributes in the next version. Thanks.