[dpdk-dev] [PATCH v2] l3fwd-power: make interrupt wakeup log thread safe
David Marchand
david.marchand at redhat.com
Mon Nov 2 11:46:40 CET 2020
On Fri, Oct 2, 2020 at 2:07 PM Anatoly Burakov
<anatoly.burakov at intel.com> 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")
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
Acked-by: David Hunt <david.hunt at intel.com>
Tested-by: Xi Zhang <xix.zhang at intel.com>
Applied, thanks.
--
David Marchand
More information about the dev
mailing list