mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
ovs-dpctl: Do not report pmd info for 'dpif-netlink' datapath.
In 'ovs-dpctl dump-flows' output, we should only report the pmd related info for 'dpif-netdev' datapath. However, current implementation also reports uninitialized pmd info for 'dpif-netlink' datapath, which is very confusing to users. This commit fixes it. Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -1429,9 +1429,9 @@ dpif_netlink_flow_to_dpif_flow(struct dpif *dpif, struct dpif_flow *dpif_flow,
|
||||
dpif_flow->actions = datapath_flow->actions;
|
||||
dpif_flow->actions_len = datapath_flow->actions_len;
|
||||
dpif_flow->ufid_present = datapath_flow->ufid_present;
|
||||
dpif_flow->pmd_id = PMD_ID_NULL;
|
||||
if (datapath_flow->ufid_present) {
|
||||
dpif_flow->ufid = datapath_flow->ufid;
|
||||
dpif_flow->pmd_id = PMD_ID_NULL;
|
||||
} else {
|
||||
ovs_assert(datapath_flow->key && datapath_flow->key_len);
|
||||
dpif_flow_hash(dpif, datapath_flow->key, datapath_flow->key_len,
|
||||
|
Reference in New Issue
Block a user