summaryrefslogtreecommitdiff
path: root/lib/netdev-vport.c
diff options
context:
space:
mode:
authorDaniele Di Proietto <diproiettod@vmware.com>2015-04-15 19:11:48 +0100
committerEthan Jackson <ethan@nicira.com>2015-04-20 12:49:41 -0700
commit2bc1bbd27ded5752f438ff35673f38a527ea0915 (patch)
tree01616123675da80d731e1cb27b17adf398c8813c /lib/netdev-vport.c
parent11bfdaddf2035efe054b6a098dc3b8aeeb65eeb6 (diff)
downloadopenvswitch-2bc1bbd27ded5752f438ff35673f38a527ea0915.tar.gz
dp-packet: Rename 'dp_hash' in 'rss_hash'.
We already have the 'dp_hash' embedded in the metadata. This caused confusion in the code. With this commit it should be clear that 'rss_hash' is the packet hash used for internal purposes, while 'md.dp_hash' is part of the flow, computed during the execution of certain actions. Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/netdev-vport.c')
-rw-r--r--lib/netdev-vport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c
index f228ac219..297320c0a 100644
--- a/lib/netdev-vport.c
+++ b/lib/netdev-vport.c
@@ -914,7 +914,7 @@ get_src_port(struct dp_packet *packet)
{
uint32_t hash;
- hash = dp_packet_get_dp_hash(packet);
+ hash = dp_packet_get_rss_hash(packet);
return htons((((uint64_t) hash * (tnl_udp_port_max - tnl_udp_port_min)) >> 32) +
tnl_udp_port_min);