Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2006166ybz; Thu, 30 Apr 2020 09:12:49 -0700 (PDT) X-Google-Smtp-Source: APiQypI4esCmxMW57WEdzJJuQ0PBJg4IfmGG4Y2FUrCv3DeBX0WgZ376SNoXb0OFA52WKR8YOhy3 X-Received: by 2002:a50:c60c:: with SMTP id k12mr3392320edg.111.1588263169442; Thu, 30 Apr 2020 09:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588263169; cv=none; d=google.com; s=arc-20160816; b=kyQYMpi0bbIbCEJBOW8FRxvrRB9pRa2Xq+OPOSc/sfL0b0JEUZMNTYHjIA4pDze/jX iUNacVDe5wbk6YWnkOC2eCp+YF4CBGef7WMJOxCQcmE7zLIzuqWWiFCjmzMUhPyXTfhY V0jl/sgNqc7hHjVV06XfGPlcJ1PX7gHh7ZfWDsjFcETR1UnpDEBz7QF82CRr5Q3CwY+j awVcVTfO3DmBXPkdkWp1OAVfXt364FgHa6LZxyeleKUFqdQnOOh1lgTuXJhTaNWhdluB j9v4Au6DfGwbV1vQIp+TKYqLKTRtj5UPnEEyZBgO3lsua71eeovO6qbdFZl9gjNPR/J7 kBaw== 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:date:subject:cc:to:from :dkim-signature; bh=5a72Uz2NHhRdCDOdyCDHJgOl3epUMCkLZ45dArguK+U=; b=dAalb2NbgHdYOBXKTfywuD+RMjP73HcwQaxNWUPI5nXeMlux2+UAH0QeG51n4rXq57 fgqRsmY+ReZPUZhn38NgS9T2OJKms+TCyj5WCzkyKUttOAdgLk1tbbZVvzpuxwKNreJl FSzIKCPZDh10+kE39Yiisht1xxFF5caxs2BGv1v74+XU60I7Kg1vh/l9PZ9sM1rCQfDU ndkkPf8uYOeWcNQc/5uq917OLokzVUadE1AAyYkpIwhOP18tz3KzoieAAXwlkT/Unuzq moW8egv2pGQ/sucsW3OwjCyZ3CXiGwMc0sgsYZiXefqz953mm45kl/UxAWKBjTFwURFv sU8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w96YBFQL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a19si57760ejs.131.2020.04.30.09.12.25; Thu, 30 Apr 2020 09:12:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w96YBFQL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728052AbgD3QHp (ORCPT + 99 others); Thu, 30 Apr 2020 12:07:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:50866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726859AbgD3QEi (ORCPT ); Thu, 30 Apr 2020 12:04:38 -0400 Received: from mail.kernel.org (ip5f5ad5c5.dynamic.kabel-deutschland.de [95.90.213.197]) (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 EA6F3217BA; Thu, 30 Apr 2020 16:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588262676; bh=VskrOSds+k6lATCBRxSNU8FwGkjkFNi0RCLoQYUzeio=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w96YBFQL43JPBzEzOIR2cQc1RJ1EREU8munTIHlc6DD2iW/w2zeeoTWGmN4q7IP9v /Vd7qXRQzofKcwb3CwxqsUeayJzgBMhkogOEWKx6gHc3/551p5K2eSZKWyAq3h5DUH Wi/MHtE9M2Qdtm2ZEGG2+AhB82t+i1tnsCZgEIEA= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jUBfu-00AxEi-6Z; Thu, 30 Apr 2020 18:04:34 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org Subject: [PATCH 08/37] docs: networking: convert netdev-features.txt to ReST Date: Thu, 30 Apr 2020 18:04:03 +0200 Message-Id: <6990088c4a50c1da5a563649189e5fd0c114ddf3.1588261997.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: 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 Not much to be done here: - add SPDX header; - adjust titles and chapters, adding proper markups; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../networking/checksum-offloads.rst | 2 +- Documentation/networking/index.rst | 1 + ...etdev-features.txt => netdev-features.rst} | 19 +++++++++++-------- include/linux/netdev_features.h | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) rename Documentation/networking/{netdev-features.txt => netdev-features.rst} (95%) diff --git a/Documentation/networking/checksum-offloads.rst b/Documentation/networking/checksum-offloads.rst index 905c8a84b103..69b23cf6879e 100644 --- a/Documentation/networking/checksum-offloads.rst +++ b/Documentation/networking/checksum-offloads.rst @@ -59,7 +59,7 @@ recomputed for each resulting segment. See the skbuff.h comment (section 'E') for more details. A driver declares its offload capabilities in netdev->hw_features; see -Documentation/networking/netdev-features.txt for more. Note that a device +Documentation/networking/netdev-features.rst for more. Note that a device which only advertises NETIF_F_IP[V6]_CSUM must still obey the csum_start and csum_offset given in the SKB; if it tries to deduce these itself in hardware (as some NICs do) the driver should check that the values in the SKB match diff --git a/Documentation/networking/index.rst b/Documentation/networking/index.rst index e58f872d401d..4c6aa3db97d4 100644 --- a/Documentation/networking/index.rst +++ b/Documentation/networking/index.rst @@ -81,6 +81,7 @@ Contents: mpls-sysctl multiqueue netconsole + netdev-features .. only:: subproject and html diff --git a/Documentation/networking/netdev-features.txt b/Documentation/networking/netdev-features.rst similarity index 95% rename from Documentation/networking/netdev-features.txt rename to Documentation/networking/netdev-features.rst index 58dd1c1e3c65..a2d7d7160e39 100644 --- a/Documentation/networking/netdev-features.txt +++ b/Documentation/networking/netdev-features.rst @@ -1,3 +1,6 @@ +.. SPDX-License-Identifier: GPL-2.0 + +===================================================== Netdev features mess and how to get out from it alive ===================================================== @@ -6,8 +9,8 @@ Author: - Part I: Feature sets -====================== +Part I: Feature sets +==================== Long gone are the days when a network card would just take and give packets verbatim. Today's devices add multiple features and bugs (read: offloads) @@ -39,8 +42,8 @@ one used internally by network core: - Part II: Controlling enabled features -======================================= +Part II: Controlling enabled features +===================================== When current feature set (netdev->features) is to be changed, new set is calculated and filtered by calling ndo_fix_features callback @@ -65,8 +68,8 @@ driver except by means of ndo_fix_features callback. - Part III: Implementation hints -================================ +Part III: Implementation hints +============================== * ndo_fix_features: @@ -94,8 +97,8 @@ Errors returned are not (and cannot be) propagated anywhere except dmesg. - Part IV: Features -=================== +Part IV: Features +================= For current list of features, see include/linux/netdev_features.h. This section describes semantics of some of them. diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h index 9d53c5ad272c..2cc3cf80b49a 100644 --- a/include/linux/netdev_features.h +++ b/include/linux/netdev_features.h @@ -89,7 +89,7 @@ enum { * Add your fresh new feature above and remember to update * netdev_features_strings[] in net/core/ethtool.c and maybe * some feature mask #defines below. Please also describe it - * in Documentation/networking/netdev-features.txt. + * in Documentation/networking/netdev-features.rst. */ /**/NETDEV_FEATURE_COUNT -- 2.25.4