History

netlink: specs: ethtool: define header-flags as an enum

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]

Jakub Kicinski committed 2 years ago

Commit ff8877b1 parent 35790322 files · +5 −7Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/ethtool_netlink.h+5−6
@@ -117,12 +117,11 @@ enum { · 116 unmodified lines
117117
118118 /* request header */
119119
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+};
126125
127126 #define ETHTOOL_FLAG_ALL (ETHTOOL_FLAG_COMPACT_BITSETS | \
128127 ETHTOOL_FLAG_OMIT_REPLY | \