Re: [PATCH net-next v2] net: psample: fix flag being set in wrong skb
From: Eelco Chaudron
Date: Wed Jul 10 2024 - 05:18:00 EST
On 10 Jul 2024, at 11:07, Adrian Moreno wrote:
> A typo makes PSAMPLE_ATTR_SAMPLE_RATE netlink flag be added to the wrong
> sk_buff.
>
> Fix the error and make the input sk_buff pointer "const" so that it
> doesn't happen again.
>
> Also modify OVS psample test to verify the flag is properly emitted.
>
> Fixes: 7b1b2b60c63f ("net: psample: allow using rate as probability")
> Signed-off-by: Adrian Moreno <amorenoz@xxxxxxxxxx>
Thank you for fixing this so quickly. The change looks good, and I've verified it with the OVS userspace part.
Acked-by: Eelco Chaudron <echaudro@xxxxxxxxxx>
Cheers,
Eelco