[ovs-discuss] OpenFlow(ver >=1.5) selection method dp_hash use in recirc action

Jai Rana jai.rana at oneconvergence.com
Wed May 15 07:54:14 UTC 2019


Hi All,

I am trying to understand how selection method dp_hash is used in recirc
action in datapath. With dp_hash in use, ovs action OVS_ACTION_ATTR_HASH is
triggered which invokes execute_hash(...) to calculate ovs flow hash based
on the hash basis received as netlink attribute and populates
key->ovs_flow_hash.

But during subsequent calls to
execute_recirc(...)->clone_execute(...)->ovs_dp_process_packet(...)->ovs_flow_tbl_lookup_stats(...),
skb_hash is used instead of DP populated hash in key->ovs_flow_hash to look
up the flow in ovs_flow_tbl_lookup_stats(...).

If someone can help me understand why hash in key->ovs_flow_hash is not
used here if it is available and is non zero that will be great help.

Thanks,
Jai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190515/b2524424/attachment.html>


More information about the discuss mailing list