lib/odp-execute: Use dpif_packet_set_dp_hash() instead of ->dp_hash
authorDaniele Di Proietto <ddiproietto@vmware.com>
Tue, 9 Sep 2014 21:21:41 +0000 (14:21 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Tue, 9 Sep 2014 21:21:41 +0000 (14:21 -0700)
commitf7c2f97d575b9d80220f7ee8963b63188ed192f0
treebfe7ea6a7b04c75889888379b4cd97ba981c482c
parent5f7487da0a1659a5492baae87926e4b1293cf108
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@vmware.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/odp-execute.c