Re: [PATCH net-next v5 06/10] net: openvswitch: store sampling probability in cb.

From: Ilya Maximets
Date: Wed Jun 26 2024 - 06:54:18 EST


On 6/25/24 22:51, Adrian Moreno wrote:
> When a packet sample is observed, the sampling rate that was used is
> important to estimate the real frequency of such event.
>
> Store the probability of the parent sample action in the skb's cb area
> and use it in emit_sample to pass it down to psample.
>
> Signed-off-by: Adrian Moreno <amorenoz@xxxxxxxxxx>
> ---
> include/uapi/linux/openvswitch.h | 3 ++-
> net/openvswitch/actions.c | 20 +++++++++++++++++---
> net/openvswitch/datapath.h | 3 +++
> net/openvswitch/vport.c | 1 +
> 4 files changed, 23 insertions(+), 4 deletions(-)

Reviewed-by: Ilya Maximets <i.maximets@xxxxxxx>