mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
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>
This commit is contained in:
committed by
Ethan Jackson
parent
11bfdaddf2
commit
2bc1bbd27d
@@ -3012,10 +3012,10 @@ dpif_netdev_packet_get_dp_hash(struct dp_packet *packet,
|
||||
{
|
||||
uint32_t hash;
|
||||
|
||||
hash = dp_packet_get_dp_hash(packet);
|
||||
hash = dp_packet_get_rss_hash(packet);
|
||||
if (OVS_UNLIKELY(!hash)) {
|
||||
hash = miniflow_hash_5tuple(mf, 0);
|
||||
dp_packet_set_dp_hash(packet, hash);
|
||||
dp_packet_set_rss_hash(packet, hash);
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
@@ -3495,9 +3495,6 @@ dp_execute_cb(void *aux_, struct dp_packet **packets, int cnt,
|
||||
|
||||
recirc_pkt->md.recirc_id = nl_attr_get_u32(a);
|
||||
|
||||
/* Hash is private to each packet */
|
||||
recirc_pkt->md.dp_hash = dp_packet_get_dp_hash(packets[i]);
|
||||
|
||||
dp_netdev_input(pmd, &recirc_pkt, 1);
|
||||
}
|
||||
(*depth)--;
|
||||
|
Reference in New Issue
Block a user