Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1804754lqa; Mon, 29 Apr 2024 22:31:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5DUdYQtqmZCsn3dSgpj93NSH16n9g14jIrYn8oow8NJWhgDJqtm5Ucunaof5qkmqaTG55nCrAKfYv6rMka5exUP+Td9ysqx8g1ysDhA== X-Google-Smtp-Source: AGHT+IFFGO99u5c9JZYf0jDUodoYzWaK6E3vV+JiFkY6hSQpRQEdCWmwqUj4CrZGtKJ3PgAsAhG8 X-Received: by 2002:a05:6a20:9692:b0:1ad:3d92:fdcc with SMTP id hp18-20020a056a20969200b001ad3d92fdccmr10393616pzc.33.1714455118616; Mon, 29 Apr 2024 22:31:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714455118; cv=pass; d=google.com; s=arc-20160816; b=rGS+fsLipDi7sTvabqYEZDnrD5k5rDbsu20wUaoqmGRQaFeLTJTS+9aZf6FJq/0Zh+ CtGQSweqcqB2uA9CtEdaDqdoOvaxiM0CuXlKOSXetABWx/snWOt634bJi9eqOLjABfVy uz1WAaKRJu2eoRZuVc11SDov6syhQPrfLCfV5YEvVNJwOu7PpWbMr1qzb8mJu20BSIG/ v/kHK5v075yY8SDs3o5y2J3aw9/sV5rrHVTqSaeghJEE3c3yyPUTqfoIB62XO0AgC7ae qUu7ZBmVyDaWw6ue5VW6aVqe5Sn3r8N6uDCs2GjuvCgKmNwabrrFWjRhZj7tt88bb5dG SErg== 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=KzxTstJtvUd8l5rN/2EuPcSEUQvGKdejTaLmiq9IXsE=; fh=/Q4ky9GRNrap20BIU2sln5Wkyke21d9keVFI1RL1/0E=; b=0o62YNzDZvVg5d05vWnLGCYmXUu2HnQKjetzW6bNSXGF8fAixiCs2Ja0IBgSbss6xX eya002ukEeyysjf9lujIx80NM2lMI8M9BxvJ9Z865K4mc0XEdbBfxb/wXbnB5+i8jRJT onXcToSJdxlS4zYDbT/uhRrReuVoIxNDjJsSYXoXNcMsCQXCA2IvGO7eyFblGCgmVmWV 3jkrqXIYE1Vms0n2jcI+6m6/rB8Lx75TLkkPDLGC3oXc52miUJ1gwCBVEnnVnanAMg1T 8L2ijY21k+y8iHbEjVSaUwWwaHDDX7NGNZyQRgnH0YD5RpnEuz+E76c6Tpq3lG0rLGbN snQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="rZr/iCae"; 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-163367-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163367-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 sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j4-20020a170902da8400b001e3c8b7e39dsi21332203plx.227.2024.04.29.22.31.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 22:31:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163367-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="rZr/iCae"; 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-163367-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163367-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3E7722831DB for ; Tue, 30 Apr 2024 05:31:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5B7318637; Tue, 30 Apr 2024 05:31:41 +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="rZr/iCae" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FA2B5256; Tue, 30 Apr 2024 05:31:39 +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=1714455100; cv=none; b=t06z4NGFEplWk3YnuhXdqP1cFEW0C3YG7HZi3yHflcogJYoIgVE/qsDLWHFKwv+XfKV3uIySAt6SKzlkwrmV+3hRgUGzqLrX2ZV82KPdK+8HTtMEyuCAI1fsp8EoYwIsONVaZ8UJ7dmSPUKaRzpPc68ALrWO5v37civBmgo8LeU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714455100; c=relaxed/simple; bh=Q8V+3JOr+a1s8/qzOBuGdcCPedYadHh3WFecyLKH3wI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Jj+kXERdPZuRfU5X3l45ZHUGWtylU5ESHNREfjn6R1JC4xiy5N9I1uqeTWDIrzGKhb5KEf4kgnKER0rIKTBmoRlvkrVNyh/t9SCPU+DK7u1cmWSvrzv217m9PsMFh0EsWtX7PgvEX1gdlXvlbSxRhFzWTb5XTTHl7ssCUA6Rtds= 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=rZr/iCae; 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 E1ACD210FBCF; Mon, 29 Apr 2024 22:31:38 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E1ACD210FBCF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1714455098; bh=KzxTstJtvUd8l5rN/2EuPcSEUQvGKdejTaLmiq9IXsE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rZr/iCaeB86PuU863wNDmHMaF42RuhfpgFeX8DMHrg7zO2gvIwKI2vqnOu9agG7rP Ah6600TxzkAhIbI2+muTf0bZgZV9WAeWghc+cHKUnaI12PkBud4l+PrvpsMM5FfRNu ois5YgS1cu1CY/1DmTiMVgwyQofPJslwJAZUXBmA= Date: Mon, 29 Apr 2024 22:31:38 -0700 From: Shradha Gupta To: Jiri Pirko Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Bjorn Helgaas , Jonathan Corbet , Randy Dunlap , Johannes Berg , Breno Leitao , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Souradeep Chakrabarti , Konstantin Taranov , Yury Norov , linux-hyperv@vger.kernel.org, shradhagupta@microsoft.com Subject: Re: [PATCH net-next v2 0/2] Add sysfs attributes for MANA Message-ID: <20240430053138.GA6429@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1713954774-29953-1-git-send-email-shradhagupta@linux.microsoft.com> 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 Wed, Apr 24, 2024 at 04:48:06PM +0200, Jiri Pirko wrote: > Wed, Apr 24, 2024 at 12:32:54PM CEST, shradhagupta@linux.microsoft.com wrote: > >These patches include adding sysfs attributes for improving > >debuggability on MANA devices. > > > >The first patch consists on max_mtu, min_mtu attributes that are > >implemented generically for all devices > > > >The second patch has mana specific attributes max_num_msix and num_ports > > 1) you implement only max, min is never implemented, no point > introducing it. Sure. I had added it for the sake of completeness. > 2) having driver implement sysfs entry feels *very wrong*, don't do that > 3) why DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX > and DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN > Are not what you want? Thanks for pointing this out. We are still evaluating if this devlink param could be used for our usecase where we only need a read-only msix value for VF. We keep the thread updated. > > > > >Shradha Gupta (2): > > net: Add sysfs atttributes for max_mtu min_mtu > > net: mana: Add new device attributes for mana > > > > Documentation/ABI/testing/sysfs-class-net | 16 ++++++++++ > > .../net/ethernet/microsoft/mana/gdma_main.c | 32 +++++++++++++++++++ > > net/core/net-sysfs.c | 4 +++ > > 3 files changed, 52 insertions(+) > > > >-- > >2.34.1 > > > >