]> git.proxmox.com Git - ovs.git/commit
datapath: Clear the L4 portion of the key for "later" fragments
authorJustin Pettit <jpettit@ovn.org>
Wed, 28 Aug 2019 23:50:07 +0000 (16:50 -0700)
committerJustin Pettit <jpettit@ovn.org>
Wed, 28 Aug 2019 23:59:55 +0000 (16:59 -0700)
commitc98f77699f06edd2ac9a639b9755afdb41dd9989
tree9da4ce7c38fa3581f959595a35df8d10196d2e53
parent26091730b1ad09d4484d9eb5d9197d0d8254701f
datapath: Clear the L4 portion of the key for "later" fragments

Upstream commit:
    commit 0754b4e8cdf3eec6e4122e79af26ed9bab20f8f8
    Author: Justin Pettit <jpettit@ovn.org>
    Date:   Tue Aug 27 07:58:10 2019 -0700

    openvswitch: Clear the L4 portion of the key for "later" fragments.

    Only the first fragment in a datagram contains the L4 headers.  When the
    Open vSwitch module parses a packet, it always sets the IP protocol
    field in the key, but can only set the L4 fields on the first fragment.
    The original behavior would not clear the L4 portion of the key, so
    garbage values would be sent in the key for "later" fragments.  This
    patch clears the L4 fields in that circumstance to prevent sending those
    garbage values as part of the upcall.

Signed-off-by: Justin Pettit <jpettit@ovn.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Justin Pettit <jpettit@ovn.org>
datapath/flow.c