Skip to content

Commit

Permalink
netdev-offload-dpdk: Fix port ID logging on destroy.
Browse files Browse the repository at this point in the history
Port ID should be obtained from physical device used to
create/destroy flow rules.

Fixes: 507d20e ("netdev-offload-dpdk: Support vports flows offload.")
Signed-off-by: Andrew Rybchenko <[email protected]>
Acked-by: Eli Britstein <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
ol-andrewr authored and igsilya committed Jul 9, 2021
1 parent b889d5d commit 909b40f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/netdev-offload-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1882,12 +1882,12 @@ netdev_offload_dpdk_flow_destroy(struct ufid_to_rte_flow_data *rte_flow_data)
" flow destroy %d ufid " UUID_FMT,
netdev_get_name(netdev), netdev_get_name(physdev),
(intptr_t) rte_flow,
netdev_dpdk_get_port_id(netdev),
netdev_dpdk_get_port_id(physdev),
UUID_ARGS((struct uuid *) ufid));
} else {
VLOG_ERR("Failed flow: %s/%s: flow destroy %d ufid " UUID_FMT,
netdev_get_name(netdev), netdev_get_name(physdev),
netdev_dpdk_get_port_id(netdev),
netdev_dpdk_get_port_id(physdev),
UUID_ARGS((struct uuid *) ufid));
}

Expand Down

0 comments on commit 909b40f

Please sign in to comment.