Recent changes added header flags to the spec. Use an enum instead of defines for more seamless codegen. [Jakub: drop the already applied parts and rewrite message]
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -117,12 +117,11 @@ enum { · 116 unmodified lines | ||
| 117 | 117 | |
| 118 | 118 | /* request header */ |
| 119 | 119 | |
| 120 | −/* use compact bitsets in reply */ | |
| 121 | −#define ETHTOOL_FLAG_COMPACT_BITSETS (1 << 0) | |
| 122 | −/* provide optional reply for SET or ACT requests */ | |
| 123 | −#define ETHTOOL_FLAG_OMIT_REPLY (1 << 1) | |
| 124 | −/* request statistics, if supported by the driver */ | |
| 125 | −#define ETHTOOL_FLAG_STATS (1 << 2) | |
| 120 | +enum ethtool_header_flags { | |
| 121 | + ETHTOOL_FLAG_COMPACT_BITSETS = 1 << 0, /* use compact bitsets in reply */ | |
| 122 | + ETHTOOL_FLAG_OMIT_REPLY = 1 << 1, /* provide optional reply for SET or ACT requests */ | |
| 123 | + ETHTOOL_FLAG_STATS = 1 << 2, /* request statistics, if supported by the driver */ | |
| 124 | +}; | |
| 126 | 125 | |
| 127 | 126 | #define ETHTOOL_FLAG_ALL (ETHTOOL_FLAG_COMPACT_BITSETS | \ |
| 128 | 127 | ETHTOOL_FLAG_OMIT_REPLY | \ |