projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c78b8b2
)
uapi: ioam: Insertion frequency
author
Justin Iurman
<justin.iurman@uliege.be>
Wed, 2 Feb 2022 14:25:53 +0000
(15:25 +0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 5 Feb 2022 04:24:45 +0000
(20:24 -0800)
Add the insertion frequency uapi for IOAM lwtunnels.
Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/ioam6_iptunnel.h
patch
|
blob
|
blame
|
history
diff --git
a/include/uapi/linux/ioam6_iptunnel.h
b/include/uapi/linux/ioam6_iptunnel.h
index 829ffdfcacca86895051b2da2eaae50a9cb3cc0b..38f6a8fdfd34362aaa145905eee80267a8d096ff 100644
(file)
--- a/
include/uapi/linux/ioam6_iptunnel.h
+++ b/
include/uapi/linux/ioam6_iptunnel.h
@@
-41,6
+41,15
@@
enum {
/* IOAM Trace Header */
IOAM6_IPTUNNEL_TRACE, /* struct ioam6_trace_hdr */
+ /* Insertion frequency:
+ * "k over n" packets (0 < k <= n)
+ * [0.0001% ... 100%]
+ */
+#define IOAM6_IPTUNNEL_FREQ_MIN 1
+#define IOAM6_IPTUNNEL_FREQ_MAX 1000000
+ IOAM6_IPTUNNEL_FREQ_K, /* u32 */
+ IOAM6_IPTUNNEL_FREQ_N, /* u32 */
+
__IOAM6_IPTUNNEL_MAX,
};