[ovs-git] [openvswitch/ovs] f7c2f9: lib/odp-execute: Use dpif_packet_set_dp_hash() ins...

GitHub noreply at github.com
Tue Sep 9 21:19:44 UTC 2014

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: f7c2f97d575b9d80220f7ee8963b63188ed192f0
  Author: Daniele Di Proietto <ddiproietto at vmware.com>
  Date:   2014-09-09 (Tue, 09 Sep 2014)

  Changed paths:
    M lib/odp-execute.c

  Log Message:
  lib/odp-execute: Use dpif_packet_set_dp_hash() instead of ->dp_hash

When building with DPDK support, 'struct dpif_packet' won't have 'dp_hash'
member. dpif_packet_set_dp_hash() and dpif_packet_get_dp_hash() should be used.

Furthermore, the masked set action shouldn't read 'md->dp_hash' (which is
shared in a batch), but should use dpif_packet_get_dp_hash() to get each packet
private hash.

This commit fixes the build with DPDK.

Signed-off-by: Daniele Di Proietto <ddiproietto at vmware.com>
Acked-by: Jarno Rajahalme <jrajahalme at nicira.com>

More information about the git mailing list