From 2bc1bbd27ded5752f438ff35673f38a527ea0915 Mon Sep 17 00:00:00 2001 From: Daniele Di Proietto Date: Wed, 15 Apr 2015 19:11:48 +0100 Subject: 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 Acked-by: Ethan Jackson --- lib/netdev-vport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/netdev-vport.c') 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); -- cgit v1.2.1