[ovs-git] [openvswitch/ovs] 2421b6: netdev-tc-offloads: update stats properly on flow ...

GitHub noreply at github.com
Fri Nov 17 21:51:30 UTC 2017


  Branch: refs/heads/branch-2.8
  Home:   https://github.com/openvswitch/ovs
  Commit: 2421b6eb2bd915583bd4941d304244cd246d4477
      https://github.com/openvswitch/ovs/commit/2421b6eb2bd915583bd4941d304244cd246d4477
  Author: Paolo Abeni <pabeni at redhat.com>
  Date:   2017-11-17 (Fri, 17 Nov 2017)

  Changed paths:
    M lib/netdev-tc-offloads.c

  Log Message:
  -----------
  netdev-tc-offloads: update stats properly on flow deletion

Currently, when an offloaded DP flow is deleted, the related stats
are unconditionally cleared. As a result the counters for the
originating open flow are corrupted.

This change addresses the issue updating the DP stats with the current
values provided by the flower APIs before deleting the tc filter, as
currently done by others DP providers.

Tested vs different OVS H/W offload devices, verifying that the open flow
stats are correct after the expiration of the related, H/W offloaded DP
flow.

Fixes: 30b6b047260b ("netdev-tc-offloads: Implement netdev flow del using tc interface")
CC: Paul Blakey <paulb at mellanox.com>
Reported-by: Kumar Sanghvi <kumaras at chelsio.com>
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
Acked-by: Flavio Leitner <fbl at sysclose.org>
Signed-off-by: Simon Horman <simon.horman at netronome.com>




More information about the git mailing list