• Justin Iurman's avatar
    ipv6: ioam: Insertion frequency in lwtunnel output · 08731d30
    Justin Iurman authored
    Add support for the IOAM insertion frequency inside its lwtunnel output
    function. This patch introduces a new (atomic) counter for packets,
    based on which the algorithm will decide if IOAM should be added or not.
    
    Default frequency is "1/1" (i.e., applied to all packets) for backward
    compatibility. The iproute2 patch is ready and will be submitted as soon
    as this one is accepted.
    
    Previous iproute2 command:
    ip -6 ro ad fc00::1/128 encap ioam6 [ mode ... ] ...
    
    New iproute2 command:
    ip -6 ro ad fc00::1/128 encap ioam6 [ freq k/n ] [ mode ... ] ...
    Signed-off-by: default avatarJustin Iurman <justin.iurman@uliege.be>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    08731d30
ioam6_iptunnel.c 11.9 KB