Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp239148ybi; Fri, 24 May 2019 03:07:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVhccfo1mZVKquhEamjYCx0qnxfM1vmFl1+MqdwW/4hPxm4X1T0pASm4UOq1B+z3bZdoGw X-Received: by 2002:a63:e408:: with SMTP id a8mr16912129pgi.146.1558692447410; Fri, 24 May 2019 03:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558692447; cv=none; d=google.com; s=arc-20160816; b=krYxfccXeZw7CENlgSAbucnC/PeWL19KJ1wN30omYox351C1dz7MbaguorVRmGug/I E5Dpl+pDXhnlMuew93m3tIVC20TK9bqVzmHIt582W9dpSVuS4X5NYDRZNHF2p5VZBv5s i8dJSbBXC98HrNXDF80SUDIVzRECslsdlh1MXPZox2so5ceOMySF9b6g2vUYmQxUaKHD Do52STz/XoeDNgd0hp7/etIgUi0q9KC28jcvsXXKDSUir1hx3dCjDZUJ1KUT4I7VtXK+ 7IVkHlsQkrhbGdvMOPGzpZmWDuGDrLb/IfaQvls4krx+MbGvAQ1lR8G8tMS/A0w+sN47 /koA== 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 :message-id:date:subject:cc:to:from; bh=nt+cdSxm/ZSOjDSb72R1CHBeTqDVoTXQQIH4b+Xsfyw=; b=fMTvLjU4Hr8LFRB+3U2tWSCKNBofsIm64jSTucT4icZAfGciDI0jEzKN90WI1thrAU HN23eGJWmPF6Q4Lu8k12xQpJ7vRbsS5nBNfJyby74BoQEsHUfOPjeCnhj/v08B3BWy9f jqXxHjlpMCHwBFmwM78kuvyl/VFMafyqP+i0NO43BvZWg2WIEErBtiV0rP3z+t+HdeFM IqUXLKtgN+vmuV7ouiATP3jYF2yUAQ7LxpGWwbcVlEFMD49Uv0oQs5Gv+jRlF3vQvqN6 7kmtn1FYRhxsiIhH8d44pDaaRqLwta+3jTIQ3gMEeoesghYBGxJu12y5xPbQs3GB8C0H RB4w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 185si2901980pfa.180.2019.05.24.03.07.10; Fri, 24 May 2019 03:07:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390305AbfEXKFg (ORCPT + 99 others); Fri, 24 May 2019 06:05:36 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:43387 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389745AbfEXKFg (ORCPT ); Fri, 24 May 2019 06:05:36 -0400 X-Originating-IP: 90.88.147.134 Received: from mc-bl-xps13.lan (aaubervilliers-681-1-27-134.w90-88.abo.wanadoo.fr [90.88.147.134]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id D7CABE0009; Fri, 24 May 2019 10:05:29 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Antoine Tenart , thomas.petazzoni@bootlin.com, Edward Cree Subject: [PATCH net-next] net: ethtool: Document get_rxfh_context and set_rxfh_context ethtool ops Date: Fri, 24 May 2019 12:05:30 +0200 Message-Id: <20190524100530.8445-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ethtool ops get_rxfh_context and set_rxfh_context are used to create, remove and access parameters associated to RSS contexts, in a similar fashion to get_rxfh and set_rxfh. Add a small descritopn of these callbacks in the struct ethtool_ops doc. Signed-off-by: Maxime Chevallier --- include/linux/ethtool.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index e6ebc9761822..95991e4300bf 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h @@ -260,6 +260,15 @@ bool ethtool_convert_link_mode_to_legacy_u32(u32 *legacy_u32, * will remain unchanged. * Returns a negative error code or zero. An error code must be returned * if at least one unsupported change was requested. + * @get_rxfh_context: Get the contents of the RX flow hash indirection table, + * hash key, and/or hash function assiciated to the given rss context. + * Returns a negative error code or zero. + * @set_rxfh_context: Create, remove and configure RSS contexts. Allows setting + * the contents of the RX flow hash indirection table, hash key, and/or + * hash function associated to the given context. Arguments which are set + * to %NULL or zero will remain unchanged. + * Returns a negative error code or zero. An error code must be returned + * if at least one unsupported change was requested. * @get_channels: Get number of channels. * @set_channels: Set number of channels. Returns a negative error code or * zero. -- 2.20.1