mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dpctl: Implement dpctl/flow-get for dpif-netdev.
Currently 'dpctl/flow-get' doesn't work for flows installed by PMD threads. Fix that by implementing search across all PMD threads. Will be returned flow from first PMD thread with match. Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
This commit is contained in:
committed by
Daniele Di Proietto
parent
f9176a3a7f
commit
c673049c79
@@ -1089,8 +1089,7 @@ dpctl_get_flow(int argc, const char *argv[], struct dpctl_params *dpctl_p)
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* Does not work for DPDK, since do not know which 'pmd' to apply the
|
||||
* operation. So, just uses PMD_ID_NULL. */
|
||||
/* In case of PMD will be returned flow from first PMD thread with match. */
|
||||
error = dpif_flow_get(dpif, NULL, 0, &ufid, PMD_ID_NULL, &buf, &flow);
|
||||
if (error) {
|
||||
dpctl_error(dpctl_p, error, "getting flow");
|
||||
|
Reference in New Issue
Block a user