]> git.proxmox.com Git - mirror_ovs.git/commit
dpif-netdev: Do not mix recirculation depth into RSS hash itself.
authorIlya Maximets <i.maximets@ovn.org>
Thu, 24 Oct 2019 10:55:15 +0000 (12:55 +0200)
committerIlya Maximets <i.maximets@ovn.org>
Mon, 28 Oct 2019 12:38:37 +0000 (13:38 +0100)
commit18ae34ae1f754a3ead10e9db3de021f3a4c5d1f4
tree8fec2d0e2a056261878de5c7858887434dbf2335
parent6e26ff6337a15682271eb7849eec3db90ece96cd
dpif-netdev: Do not mix recirculation depth into RSS hash itself.

Mixing of RSS hash with recirculation depth is useful for flow lookup
because same packet after recirculation should match with different
datapath rule.  Setting of the mixed value back to the packet is
completely unnecessary because recirculation depth is different on
each recirculation, i.e. we will have different packet hash for
flow lookup anyway.

This should fix the issue that packets from the same flow could be
directed to different buckets based on a dp_hash or different ports of
a balanced bonding in case they were recirculated different number of
times (e.g. due to conntrack rules).
With this change, the original RSS hash will remain the same making
it possible to calculate equal dp_hash values for such packets.

Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2019-September/363127.html
Fixes: 048963aa8507 ("dpif-netdev: Reset RSS hash when recirculating.")
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Acked-by: Jan Scheurich <jan.scheurich@ericsson.com>
lib/dpif-netdev.c