Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp934527ybh; Thu, 12 Mar 2020 13:51:50 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuSLd6vpLyDPCB6QHcmVxRq8bL6/qFbdJqX4J0G23n2snK90m8Wmm/cnnvcXxEPVkq0X47k X-Received: by 2002:a9d:694a:: with SMTP id p10mr8441367oto.151.1584046309790; Thu, 12 Mar 2020 13:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584046309; cv=none; d=google.com; s=arc-20160816; b=h0vG0zsR6xkgqIoUDxMmhTBAgNfxEwK7NCTvEXN5isBaO1MCiyh1cXBV3epBKkYstI ZHM+Y7Kn+KfEWKvJiQW70uSwb7fzYnch2IVhHlYM29dlo/Zpz4pN+JNqfWxae9QWMhbV Tiz3+ijZdDEs6Wnx+AEj5OyPhV+KEQXcC/6XhAW3KI0YCHGP7f8/P6FrUyldDR3rZffB ru5IfXIpGwS5a+aRFyqV+DYDNL2Cn4qYjram3E+8LbUIPiL+1qyeDPJJL12gG4QxQvMg sujcWSOEouA1dv0c9qfkQp6Jvchofm5q7qJCeD3xfkLSEGskrCtNNtD8JQnvuiM4F4cI iZmw== 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=F66UFFgtsq9GU52NsIf9AEzxyE+oz31OfvY7XHNxFEg=; b=jCJctIhdUQtDwnYAmRM2BY4fcanUeWCew9ZIoiItNtSL9l3gnOaYH30XsEewkqbgnM sWazXVR1Qj2Yd7XM5I3bNpQfg78Tnlcyu9aQtLGl8XcbhLU7w92hFJUQtOkG5J4hJVJc GhtEmKaVNeZq7twPd5g9opClbTbD0tbgvOEd4vtFqBqmSs9SmzJFGLK89dH6aIn/oVxV nOrILZiFQzXwK5eD9GbjyGzm9QP3q23RxNwaZhbfAdFlwxuapZFx7sUO1pS7MPGgf2B5 KWE9G2szD3k6fgzZUOsgVFh2VNiLb6PlyfVMzzAaBTT5qsHkawORzgMAznV9Rg5W7mNp dCew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zHgSqtT+; 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 b15si4161269ots.99.2020.03.12.13.51.36; Thu, 12 Mar 2020 13:51:49 -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=zHgSqtT+; 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 S1727152AbgCLUvI (ORCPT + 99 others); Thu, 12 Mar 2020 16:51:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:40036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbgCLUvI (ORCPT ); Thu, 12 Mar 2020 16:51:08 -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 CAA6F206B7; Thu, 12 Mar 2020 20:51:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584046268; bh=iCGu/BoYFT4fYBgNra20OKuoQaUn/iE8IAIw27e9SPg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=zHgSqtT+5DlNJnfciYf9zd0LqPRRMuIUY6dAhg2WkQwWt9yPHlXRVpQtkaBPY/aNW EeYreg0HO5bXxUJAVt6OPtECfA7Wie9/bXg2p2lri/w1dAno5aAL9shFoJOUBDSw1+ RK6JK2cqJ5jEl84Mtii3IlUV9rwqNZFcThLnzYM4= Date: Thu, 12 Mar 2020 13:51:06 -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 13/15] ethtool: provide channel counts with CHANNELS_GET request Message-ID: <20200312135106.6868009e@kicinski-fedora-PC1C0HJN> In-Reply-To: <94c8eef601034d8f7409a760479e472e506c3ea7.1584043144.git.mkubecek@suse.cz> References: <94c8eef601034d8f7409a760479e472e506c3ea7.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:38 +0100 (CET) Michal Kubecek wrote: > Implement CHANNELS_GET request to get channel counts of a network device. > These are traditionally available via ETHTOOL_GCHANNELS ioctl request. > > Omit attributes for channel types which are not supported by driver or > device (zero reported for maximum). > > v2: (all suggested by Jakub Kicinski) > - minor cleanup in channels_prepare_data() > - more descriptive channels_reply_size() > - omit attributes with zero max count > > Signed-off-by: Michal Kubecek Reviewed-by: Jakub Kicinski