[ovs-git] [openvswitch/ovs] b8703a: dpif-netdev: Fix crash when PACKET_OUT is metered.

Tony van der Peet noreply at github.com
Wed Sep 8 18:31:43 UTC 2021


  Branch: refs/heads/branch-2.12
  Home:   https://github.com/openvswitch/ovs
  Commit: b8703aad78cd46548ec663bb780a35dc50bf0bf4
      https://github.com/openvswitch/ovs/commit/b8703aad78cd46548ec663bb780a35dc50bf0bf4
  Author: Tony van der Peet <tony.vanderpeet at alliedtelesis.co.nz>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M lib/dp-packet.h
    M lib/dpif-netdev.c
    M tests/ofproto-dpif.at
    M tests/tunnel-push-pop.at

  Log Message:
  -----------
  dpif-netdev: Fix crash when PACKET_OUT is metered.

When a PACKET_OUT has output port of OFPP_TABLE, and the rule
table includes a meter and this causes the packet to be deleted,
execute with a clone of the packet, restoring the original packet
if it is changed by the execution.

Add tests to verify the original issue is fixed, and that the fix
doesn't break tunnel processing.

Reported-by: Tony van der Peet <tony.vanderpeet at alliedtelesis.co.nz>
Signed-off-by: Tony van der Peet <tony.vanderpeet at alliedtelesis.co.nz>
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>




More information about the git mailing list