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

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


  Branch: refs/heads/branch-2.13
  Home:   https://github.com/openvswitch/ovs
  Commit: 38efd803dd100d46219452c6c1ef5e6dd3716fbe
      https://github.com/openvswitch/ovs/commit/38efd803dd100d46219452c6c1ef5e6dd3716fbe
  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