History

io_uring/zcrx: drop "notif" from stats struct names

Keep zcrx statistics generic and don't stick "notif" to its uapi definitions. Stats dosn't need to be bound to notification details, it makes it cleaner and more readable.

Pavel Begunkov committed 3 months ago

Commit af78c001 parent ab05cac5 files · +10 −10Browse files

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

Unified · Split

2 files
  1. include/uapi/linux/io_uring/query.h +3 −3
  2. include/uapi/linux/io_uring/zcrx.h +2 −2
include/uapi/linux/io_uring/query.h+3−3
@@ -66,10 +66,10 @@ struct io_uring_query_zcrx { · 65 unmodified lines
66struct io_uring_query_zcrx_notif {66struct io_uring_query_zcrx_notif {
67 /* Bitmask of supported ZCRX_NOTIF_* flags */67 /* Bitmask of supported ZCRX_NOTIF_* flags */
68 __u32 notif_flags;68 __u32 notif_flags;
69 /* Size of io_uring_zcrx_notif_stats */69 /* Size of zcrx_stats */
70 __u32 notif_stats_size;70 __u32 stats_size;
71 /* Required alignment for the stats struct within the region (ie stats_offset) */71 /* Required alignment for the stats struct within the region (ie stats_offset) */
72 __u32 notif_stats_off_alignment;72 __u32 stats_off_alignment;
73 __u32 __resv1;73 __u32 __resv1;
74 __u64 __resv2[4];74 __u64 __resv2[4];
75};75};
include/uapi/linux/io_uring/zcrx.h+2−2
@@ -76,11 +76,11 @@ enum zcrx_notification_type { · 75 unmodified lines
76};76};
77 77
78enum zcrx_notification_desc_flags {78enum zcrx_notification_desc_flags {
79 /* If set, stats_offset holds a valid offset to a notif_stats struct */79 /* If set, stats_offset holds a valid offset to a zcrx_stats struct */
80 ZCRX_NOTIF_DESC_FLAG_STATS = 1 << 0,80 ZCRX_NOTIF_DESC_FLAG_STATS = 1 << 0,
81};81};
82 82
83struct zcrx_notif_stats {83struct zcrx_stats {
84 __u64 copy_count; /* cumulative copy-fallback CQEs */84 __u64 copy_count; /* cumulative copy-fallback CQEs */
85 __u64 copy_bytes; /* cumulative bytes copied */85 __u64 copy_bytes; /* cumulative bytes copied */
86};86};