Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp931695ybh; Thu, 12 Mar 2020 13:48:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt8jPK71eKzOKJ+CB8zuIyobmaOlrtUw8n5DDRFrJxo4Vf0QTzl9ve22Y+YSbDf6kvzFbsH X-Received: by 2002:a05:6808:98e:: with SMTP id a14mr4089662oic.8.1584046128906; Thu, 12 Mar 2020 13:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584046128; cv=none; d=google.com; s=arc-20160816; b=vTl7LfPf3JYXbYqWQmpOLHZJGYg2TgeXWYFnuheUBra3xBN2rPAX4B7xoORIB1Wj0d zaqIeeIQ8ut79uFwba1Xs0hGMQlMdWD04rnYdpe0PCcEHGl3YmOsIU3atv2DS3+JHF4R PMvXLRNIOlh3cZQrzLToAmrbIUkq8PWUvwmja6HmFPm3JtlCbLJdUb0NT66T34zAzTOs emOp1ED0rlZogL1DxysepZSPnPAjkrxLJelIGckwHLqhYZ+ohg7H/S+ZAsPf1mgEcZUV V27E65h347k2J8s/X7w+j2NwHS856EMw64LdNNPeNL9Kiqg+MuFJMjkYyd5y/voqNGXL yUaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=mBoAPXc+GF+WyU2+QO5d1FpzyMo9CrlDsPkymuxh3WI=; b=ZMbuy126q6ZF8/J64q628CxegaA50c17TqZTuSoE9XE8HpRAGBjcplfhNvdP3Y5umD tgERdh9nJFepPYw4dKhvBIyva1mRf98L2wTbB3MwY7W9vyDAjo/fRnVWmcfmZ/aQecJ2 H6qtwneU3gQoCmHbUN47qi+oTKV9b5fvCPNiOT/phxmw8vx60AF/47r3oWPulhRZhZqL vjdT2kymwuFn+BIUj/JoplGjLS/Uf1BLU2KkqGwooiKcvIi014yYOu7is/UMCxeeYPWt +g3koqOOWd5Q8oYObVkRTIWvDK8tkmRaWR1s/aKWB4OmjjfFz3DQ+BsjgXIhtKtO25vS a/Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xDqPpAA5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si3551705ota.36.2020.03.12.13.48.34; Thu, 12 Mar 2020 13:48:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xDqPpAA5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726910AbgCLUsT (ORCPT + 99 others); Thu, 12 Mar 2020 16:48:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:38318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbgCLUsT (ORCPT ); Thu, 12 Mar 2020 16:48:19 -0400 Received: from kicinski-fedora-PC1C0HJN (unknown [163.114.132.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 066ED205F4; Thu, 12 Mar 2020 20:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584046098; bh=ZI4Bg1MD+pI9PXRwSGVnZabYq2MtwwKRuB4sTOUbi7k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=xDqPpAA5UC8+z7uHh9c3GcR4cK1gUvkQ0bxidmGQ1Xd9RUbxc4/PQfpWm930NN0uY R5k+NilTRNzRB5TQrMcUs6PwGVBtfDOxbjeBr2rH93llJDVSqhyaf1tK8yDikvSeVq K6l84s0xQFeq4p4lNhmA5AZ3bFnvh+R4YVeaRoY0= Date: Thu, 12 Mar 2020 13:48:15 -0700 From: Jakub Kicinski To: Michal Kubecek Cc: David Miller , netdev@vger.kernel.org, Jiri Pirko , Andrew Lunn , Florian Fainelli , John Linville , Johannes Berg , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 10/15] ethtool: provide ring sizes with RINGS_GET request Message-ID: <20200312134815.6d9372d6@kicinski-fedora-PC1C0HJN> In-Reply-To: <9a21d15cfd2453fd594be39a1e8a3416e0973bab.1584043144.git.mkubecek@suse.cz> References: <9a21d15cfd2453fd594be39a1e8a3416e0973bab.1584043144.git.mkubecek@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Mar 2020 21:08:23 +0100 (CET) Michal Kubecek wrote: > Implement RINGS_GET request to get ring sizes of a network device. These > are traditionally available via ETHTOOL_GRINGPARAM ioctl request. > > Omit attributes for ring types which are not supported by driver or device > (zero reported for maximum). > > v2: (all suggested by Jakub Kicinski) > - minor cleanup in rings_prepare_data() > - more descriptive rings_reply_size() > - omit attributes with zero max size > > Signed-off-by: Michal Kubecek Reviewed-by: Jakub Kicinski