[ovs-git] [openvswitch/ovs] 89c85b: dpif-netlink: avoid netlink modify flow put op fai...

Simon Horman noreply at github.com
Thu Mar 19 13:44:28 UTC 2020


  Branch: refs/heads/branch-2.13
  Home:   https://github.com/openvswitch/ovs
  Commit: 89c85b997c775425ad3a18bbde0aeb0a1ec65536
      https://github.com/openvswitch/ovs/commit/89c85b997c775425ad3a18bbde0aeb0a1ec65536
  Author: wenxu <wenxu at ucloud.cn>
  Date:   2020-03-19 (Thu, 19 Mar 2020)

  Changed paths:
    M lib/dpif-netlink.c
    M lib/netdev-offload-tc.c
    M lib/netdev-offload.h

  Log Message:
  -----------
  dpif-netlink: avoid netlink modify flow put op failed after tc modify flow put op failed.

The tc modify flow put always delete the original flow first and
then add the new flow. If the modfiy flow put operation failed,
the flow put operation will change from modify to create if success
to delete the original flow in tc (which will be always failed with
ENOENT, the flow is already be deleted before add the new flow in tc).
Finally, the modify flow put will failed to add in kernel datapath.

Signed-off-by: wenxu <wenxu at ucloud.cn>
Acked-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>




More information about the git mailing list