https://github.com/torvalds/linux
Revision 5b186cd60f033110960a3db424ffbd6de4cee528 authored by Heinrich Kuhn on 27 May 2020, 07:44:20 UTC, committed by David S. Miller on 27 May 2020, 18:18:57 UTC
Prior to this change the correct value for the used counter is calculated
but not stored nor, therefore, propagated to user-space. In use-cases such
as OVS use-case at least this results in active flows being removed from
the hardware datapath. Which results in both unnecessary flow tear-down
and setup, and packet processing on the host.

This patch addresses the problem by saving the calculated used value
which allows the value to propagate to user-space.

Found by inspection.

Fixes: aa6ce2ea0c93 ("nfp: flower: support stats update for merge flows")
Signed-off-by: Heinrich Kuhn <heinrich.kuhn@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent bb2f930
Raw File
Tip revision: 5b186cd60f033110960a3db424ffbd6de4cee528 authored by Heinrich Kuhn on 27 May 2020, 07:44:20 UTC
nfp: flower: fix used time of merge flow statistics
Tip revision: 5b186cd
COPYING
The Linux Kernel is provided under:

	SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note

Being under the terms of the GNU General Public License version 2 only,
according with:

	LICENSES/preferred/GPL-2.0

With an explicit syscall exception, as stated at:

	LICENSES/exceptions/Linux-syscall-note

In addition, other licenses may also apply. Please see:

	Documentation/process/license-rules.rst

for more details.

All contributions to the Linux Kernel are subject to this COPYING file.
back to top