| @@ -1,3 +1,6 @@ |
| 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 | |
| @@ -6,8 +9,8 @@ Author: · 2 unmodified lines |
| 6 | 9 | |
| 7 | 10 | |
| 8 | 11 | |
| 9 | | − Part I: Feature sets |
| 10 | | −====================== |
| 12 | +Part I: Feature sets |
| 13 | +==================== |
| 11 | 14 | |
| 12 | 15 | Long gone are the days when a network card would just take and give packets |
| 13 | 16 | verbatim. Today's devices add multiple features and bugs (read: offloads) |
| @@ -39,8 +42,8 @@ one used internally by network core: · 25 unmodified lines |
| 39 | 42 | |
| 40 | 43 | |
| 41 | 44 | |
| 42 | | − Part II: Controlling enabled features |
| 43 | | −======================================= |
| 45 | +Part II: Controlling enabled features |
| 46 | +===================================== |
| 44 | 47 | |
| 45 | 48 | When current feature set (netdev->features) is to be changed, new set |
| 46 | 49 | 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 |
| 65 | 68 | |
| 66 | 69 | |
| 67 | 70 | |
| 68 | | − Part III: Implementation hints |
| 69 | | −================================ |
| 71 | +Part III: Implementation hints |
| 72 | +============================== |
| 70 | 73 | |
| 71 | 74 | * ndo_fix_features: |
| 72 | 75 | |
| @@ -94,8 +97,8 @@ Errors returned are not (and cannot be) propagated anywhere except dmesg. · 21 unmodified lines |
| 94 | 97 | |
| 95 | 98 | |
| 96 | 99 | |
| 97 | | − Part IV: Features |
| 98 | | −=================== |
| 100 | +Part IV: Features |
| 101 | +================= |
| 99 | 102 | |
| 100 | 103 | For current list of features, see include/linux/netdev_features.h. |
| 101 | 104 | This section describes semantics of some of them. |