uapi: ioam: Insertion frequency
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>
This commit is contained in:
parent
c78b8b20e3
commit
be847673cf
|
@ -41,6 +41,15 @@ enum {
|
||||||
/* IOAM Trace Header */
|
/* IOAM Trace Header */
|
||||||
IOAM6_IPTUNNEL_TRACE, /* struct ioam6_trace_hdr */
|
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,
|
__IOAM6_IPTUNNEL_MAX,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue