History

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.

Mauro Carvalho Chehab committed 6 years ago

Commit ea5baca1 parent d9d6ef24 files · +14 −10Browse files

Unified · Split

4 files
  1. Documentation/networking/checksum-offloads.rst +1 −1
  2. Documentation/networking/index.rst +1 −0
  3. Documentation/networking/netdev-features.rst +11 −8
  4. include/linux/netdev_features.h +1 −1
Documentation/networking/checksum-offloads.rst+1−1
@@ -59,7 +59,7 @@ recomputed for each resulting segment. See the skbuff.h comment (section 'E') · 58 unmodified lines
5959 for more details.
6060
6161 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
6363 which only advertises NETIF_F_IP[V6]_CSUM must still obey the csum_start and
6464 csum_offset given in the SKB; if it tries to deduce these itself in hardware
6565 (as some NICs do) the driver should check that the values in the SKB match
Documentation/networking/index.rst+1−0
@@ -81,6 +81,7 @@ Contents: · 80 unmodified lines
8181 mpls-sysctl
8282 multiqueue
8383 netconsole
84+ netdev-features
8485
8586 .. only:: subproject and html
8687
Documentation/networking/netdev-features.rstrenamed from Documentation/networking/netdev-features.txt+11−8
@@ -1,3 +1,6 @@
1+.. SPDX-License-Identifier: GPL-2.0
2+
3+=====================================================
14 Netdev features mess and how to get out from it alive
25 =====================================================
36
@@ -6,8 +9,8 @@ Author: · 2 unmodified lines
69
710
811
9− Part I: Feature sets
10−======================
12+Part I: Feature sets
13+====================
1114
1215 Long gone are the days when a network card would just take and give packets
1316 verbatim. Today's devices add multiple features and bugs (read: offloads)
@@ -39,8 +42,8 @@ one used internally by network core: · 25 unmodified lines
3942
4043
4144
42− Part II: Controlling enabled features
43−=======================================
45+Part II: Controlling enabled features
46+=====================================
4447
4548 When current feature set (netdev->features) is to be changed, new set
4649 is calculated and filtered by calling ndo_fix_features callback
@@ -65,8 +68,8 @@ driver except by means of ndo_fix_features callback. · 18 unmodified lines
6568
6669
6770
68− Part III: Implementation hints
69−================================
71+Part III: Implementation hints
72+==============================
7073
7174 * ndo_fix_features:
7275
@@ -94,8 +97,8 @@ Errors returned are not (and cannot be) propagated anywhere except dmesg. · 21 unmodified lines
9497
9598
9699
97− Part IV: Features
98−===================
100+Part IV: Features
101+=================
99102
100103 For current list of features, see include/linux/netdev_features.h.
101104 This section describes semantics of some of them.
include/linux/netdev_features.h+1−1
@@ -89,7 +89,7 @@ enum { · 88 unmodified lines
8989 * Add your fresh new feature above and remember to update
9090 * netdev_features_strings[] in net/core/ethtool.c and maybe
9191 * some feature mask #defines below. Please also describe it
92− * in Documentation/networking/netdev-features.txt.
92+ * in Documentation/networking/netdev-features.rst.
9393 */
9494
9595 /**/NETDEV_FEATURE_COUNT