[ovs-discuss] Time a packet spends in the switch

Ben Pfaff blp at ovn.org
Thu Oct 13 18:15:08 UTC 2016

On Thu, Oct 13, 2016 at 12:27:38PM -0400, Danish Sattar wrote:
> I'm trying to find out the time a packet spends in the switch only. Time
> difference between packet in and out.
> I thought analyzing the time in learning-switch.c would be give me some
> info but that didn't work.

Most packets don't ever go to userspace so you'll have to instrument the
kernel module, probably the ovs_dp_process_packet() function in
datapath/datapath.h.  I don't know the best way to do this.

You might be able to approximate this with the Linux "perf" tool.

More information about the discuss mailing list