Calling vlib_add_trace() for every packet that goes through the sflow node seems redundant, since the exact same packets could be traced in the node before or the node after.
There might be an argument for tracing only the packets that are sampled? Although making that easy to do elsewhere is kind of the whole point of sFlow, so could we remove all the tracing code? It's over 100 lines.
Calling vlib_add_trace() for every packet that goes through the sflow node seems redundant, since the exact same packets could be traced in the node before or the node after.
There might be an argument for tracing only the packets that are sampled? Although making that easy to do elsewhere is kind of the whole point of sFlow, so could we remove all the tracing code? It's over 100 lines.