From: Justin Iurman Date: Mon, 26 Feb 2024 13:14:12 +0000 (+0100) Subject: net: exthdrs: ioam6: send trace event X-Git-Tag: microblaze-v6.10~161^2~162^2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=f655c78d6225f585ef60a9d93ffb79d507ff3ad3;p=linux-2.6-microblaze.git net: exthdrs: ioam6: send trace event If we're processing an IOAM Pre-allocated Trace Option-Type (the only one supported currently), then send the trace as an ioam6 event to the netlink multicast group. This way, user space apps will be able to collect IOAM data. Reviewed-by: David Ahern Signed-off-by: Justin Iurman Signed-off-by: David S. Miller --- diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index 02e9ffb63af1..727792907d6c 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c @@ -50,6 +50,7 @@ #endif #include #include +#include #include #include @@ -954,6 +955,9 @@ static bool ipv6_hop_ioam(struct sk_buff *skb, int optoff) + optoff + sizeof(*hdr)); ioam6_fill_trace_data(skb, ns, trace, true); + + ioam6_event(IOAM6_EVENT_TRACE, dev_net(skb->dev), + GFP_ATOMIC, (void *)trace, hdr->opt_len - 2); break; default: break;