History

net: sched: rename more stats_types

Commit 53eca1f3479f ("net: rename flow_action_hw_stats_types* -> flow_action_hw_stats*") renamed just the flow action types and helpers. For consistency rename variables, enums, struct members and UAPI too (note that this UAPI was not in any official release, yet).

Jakub Kicinski committed 6 years ago

Commit 0dfb2d81 parent c3c123d7 files · +55 −58Browse files

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

Unified · Split

include/uapi/linux/pkt_cls.h+14−15
@@ -17,7 +17,7 @@ enum { · 16 unmodified lines
1717 TCA_ACT_PAD,
1818 TCA_ACT_COOKIE,
1919 TCA_ACT_FLAGS,
20− TCA_ACT_HW_STATS_TYPE,
20+ TCA_ACT_HW_STATS,
2121 __TCA_ACT_MAX
2222 };
2323
@@ -31,20 +31,19 @@ enum { · 7 unmodified lines
3131 * all supported bits set.
3232 * In case no bits are set, user is not interested in getting any HW statistics.
3333 */
34−#define TCA_ACT_HW_STATS_TYPE_IMMEDIATE (1 << 0) /* Means that in dump, user
35− * gets the current HW stats
36− * state from the device
37− * queried at the dump time.
38− */
39−#define TCA_ACT_HW_STATS_TYPE_DELAYED (1 << 1) /* Means that in dump, user gets
40− * HW stats that might be out
41− * of date for some time, maybe
42− * couple of seconds. This is
43− * the case when driver polls
44− * stats updates periodically
45− * or when it gets async stats update
46− * from the device.
47− */
34+#define TCA_ACT_HW_STATS_IMMEDIATE (1 << 0) /* Means that in dump, user
35+ * gets the current HW stats
36+ * state from the device
37+ * queried at the dump time.
38+ */
39+#define TCA_ACT_HW_STATS_DELAYED (1 << 1) /* Means that in dump, user gets
40+ * HW stats that might be out of date
41+ * for some time, maybe couple of
42+ * seconds. This is the case when
43+ * driver polls stats updates
44+ * periodically or when it gets async
45+ * stats update from the device.
46+ */
4847
4948 #define TCA_ACT_MAX __TCA_ACT_MAX
5049 #define TCA_OLD_COMPAT (TCA_ACT_MAX+1)