| @@ -1,3 +1,6 @@ |
| | 1 | .. SPDX-License-Identifier: GPL-2.0 |
| | 2 | |
| | 3 | ===================================================== |
| 1 | Netdev features mess and how to get out from it alive | 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 | 12 | Part I: Feature sets |
| 10 | ====================== | 13 | ==================== |
| 11 | | 14 | |
| 12 | Long gone are the days when a network card would just take and give packets | 15 | Long gone are the days when a network card would just take and give packets |
| 13 | verbatim. Today's devices add multiple features and bugs (read: offloads) | 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 | 45 | Part II: Controlling enabled features |
| 43 | ======================================= | 46 | ===================================== |
| 44 | | 47 | |
| 45 | When current feature set (netdev->features) is to be changed, new set | 48 | When current feature set (netdev->features) is to be changed, new set |
| 46 | is calculated and filtered by calling ndo_fix_features callback | 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 | 71 | Part III: Implementation hints |
| 69 | ================================ | 72 | ============================== |
| 70 | | 73 | |
| 71 | * ndo_fix_features: | 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 | 100 | Part IV: Features |
| 98 | =================== | 101 | ================= |
| 99 | | 102 | |
| 100 | For current list of features, see include/linux/netdev_features.h. | 103 | For current list of features, see include/linux/netdev_features.h. |
| 101 | This section describes semantics of some of them. | 104 | This section describes semantics of some of them. |