[ovs-git] [openvswitch/ovs] dd54a1: netdev-tc-offloads: Delete ufid tc mapping in the ...

GitHub noreply at github.com
Fri Nov 16 15:38:57 UTC 2018


  Branch: refs/heads/branch-2.9
  Home:   https://github.com/openvswitch/ovs
  Commit: dd54a180dff11395293821adf7562b21d5c9676a
      https://github.com/openvswitch/ovs/commit/dd54a180dff11395293821adf7562b21d5c9676a
  Author: Chris Mi <chrism at mellanox.com>
  Date:   2018-11-16 (Fri, 16 Nov 2018)

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

  Log Message:
  -----------
  netdev-tc-offloads: Delete ufid tc mapping in the right place

Currently, the ufid tc mapping is deleted in add_ufid_tc_mapping().
But if tc_replace_flower() failed, the old ufid tc mapping will not
be deleted. If another thread adds the same tc mapping successfully,
then there will be multiple mappings for the same ifindex, handle
and prio.

Fixes: 9116730db ("netdev-tc-offloads: Add ufid to tc/netdev map")
Signed-off-by: Chris Mi <chrism at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list