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
117 117
118/* request header */118/* request header */
119 119
120/* use compact bitsets in reply */120enum ethtool_header_flags {
121#define ETHTOOL_FLAG_COMPACT_BITSETS (1 << 0)121 ETHTOOL_FLAG_COMPACT_BITSETS = 1 << 0, /* use compact bitsets in reply */
122/* provide optional reply for SET or ACT requests */122 ETHTOOL_FLAG_OMIT_REPLY = 1 << 1, /* provide optional reply for SET or ACT requests */
123#define ETHTOOL_FLAG_OMIT_REPLY (1 << 1)123 ETHTOOL_FLAG_STATS = 1 << 2, /* request statistics, if supported by the driver */
124/* request statistics, if supported by the driver */124};
125#define ETHTOOL_FLAG_STATS (1 << 2)
126 125
127#define ETHTOOL_FLAG_ALL (ETHTOOL_FLAG_COMPACT_BITSETS | \126#define ETHTOOL_FLAG_ALL (ETHTOOL_FLAG_COMPACT_BITSETS | \
128 ETHTOOL_FLAG_OMIT_REPLY | \127 ETHTOOL_FLAG_OMIT_REPLY | \