Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: networking: convert netdev-features.txt to ReST

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 <mchehab+huawei@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Mauro Carvalho Chehab and committed by
David S. Miller
ea5bacaa d9d6ef25

+14 -10
+1 -1
Documentation/networking/checksum-offloads.rst
··· 59 59 for more details. 60 60 61 61 A driver declares its offload capabilities in netdev->hw_features; see 62 - Documentation/networking/netdev-features.txt for more. Note that a device 62 + Documentation/networking/netdev-features.rst for more. Note that a device 63 63 which only advertises NETIF_F_IP[V6]_CSUM must still obey the csum_start and 64 64 csum_offset given in the SKB; if it tries to deduce these itself in hardware 65 65 (as some NICs do) the driver should check that the values in the SKB match
+1
Documentation/networking/index.rst
··· 81 81 mpls-sysctl 82 82 multiqueue 83 83 netconsole 84 + netdev-features 84 85 85 86 .. only:: subproject and html 86 87
+11 -8
Documentation/networking/netdev-features.txt Documentation/networking/netdev-features.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + ===================================================== 1 4 Netdev features mess and how to get out from it alive 2 5 ===================================================== 3 6 ··· 9 6 10 7 11 8 12 - Part I: Feature sets 13 - ====================== 9 + Part I: Feature sets 10 + ==================== 14 11 15 12 Long gone are the days when a network card would just take and give packets 16 13 verbatim. Today's devices add multiple features and bugs (read: offloads) ··· 42 39 43 40 44 41 45 - Part II: Controlling enabled features 46 - ======================================= 42 + Part II: Controlling enabled features 43 + ===================================== 47 44 48 45 When current feature set (netdev->features) is to be changed, new set 49 46 is calculated and filtered by calling ndo_fix_features callback ··· 68 65 69 66 70 67 71 - Part III: Implementation hints 72 - ================================ 68 + Part III: Implementation hints 69 + ============================== 73 70 74 71 * ndo_fix_features: 75 72 ··· 97 94 98 95 99 96 100 - Part IV: Features 101 - =================== 97 + Part IV: Features 98 + ================= 102 99 103 100 For current list of features, see include/linux/netdev_features.h. 104 101 This section describes semantics of some of them.
+1 -1
include/linux/netdev_features.h
··· 89 89 * Add your fresh new feature above and remember to update 90 90 * netdev_features_strings[] in net/core/ethtool.c and maybe 91 91 * some feature mask #defines below. Please also describe it 92 - * in Documentation/networking/netdev-features.txt. 92 + * in Documentation/networking/netdev-features.rst. 93 93 */ 94 94 95 95 /**/NETDEV_FEATURE_COUNT