On 15 Jul 2021, at 8:01, Chris Mi wrote:
This patch set adds offload support for sFlow.
Psample is a genetlink channel for packet sampling. TC action
act_sample
uses psample to send sampled packets to userspace.
When offloading sample action to TC, userspace creates a unique ID to
map sFlow action and tunnel info and passes this ID to kernel instead
of the sFlow info. psample will send this ID and sampled packet to
userspace. Using the ID, userspace can recover the sFlow info and send
sampled packet to the right sFlow monitoring host.
Hi Chris,
One thing missing from this patchset is a test case. I think we should
add it, as I’m going over this manually every patch iteration.
I would add the following:
- Set the sample rate to 1, send 100 packets and make sure you receive
all of them
- Also, verify the output of “ovs-appctl dpctl/dump-flows
system@ovs-system type=tc” is correct, i.e., matches the kernel output
- Set the sample rate to 10, send 100 packets and make sure you
receive 10.
- Also, verify the output of “ovs-appctl dpctl/dump-flows
system@ovs-system type=tc” is correct, i.e., matches the kernel output
Cheers,
Eelco
PS: I also had a problem where only one packet got sent to the
collector, and then no more packets would arrive. Of course, when I
added some debug code, it never happened, and when removing the debug
code, it also worked fine :( Did you ever experience something like
this? I will play a bit more when reviewing specific code, maybe it will
happen again.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev