[dpdk-dev] [PATCH v2] l3fwd-power: make interrupt wakeup log thread safe

David Hunt david.hunt at intel.com
Wed Oct 7 17:06:25 CEST 2020


Hi Anatoly,

On 2/10/2020 1:07 PM, Anatoly Burakov wrote:
> Currently, the interrupt status notification prevents log spam by
> remembering whether previous interrupt wakeup was due to traffic or due
> to timeout expiring. However, it is a single variable that can
> potentially be accessed from multiple threads, so it is not thread-safe.
>
> Fix it by having per-lcore interrupt status.
>
> Fixes: f4d1e19c293d ("examples/l3fwd-power: add Rx interrupt timeout")
> Cc: anatoly.burakov at intel.com
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---


Makes sense. Thanks.

Acked-by: David Hunt <david.hunt at intel.com>






More information about the dev mailing list