diff --git a/lib/netdev-tc-offloads.c b/lib/netdev-tc-offloads.c index 115cd9e29..f5555e418 100644 --- a/lib/netdev-tc-offloads.c +++ b/lib/netdev-tc-offloads.c @@ -1387,9 +1387,9 @@ netdev_tc_flow_get(struct netdev *netdev OVS_UNUSED, return -ifindex; } - VLOG_DBG_RL(&rl, "flow get (dev %s prio %d handle %d)", - netdev_get_name(dev), prio, handle); - block_id = get_block_id_from_netdev(netdev); + block_id = get_block_id_from_netdev(dev); + VLOG_DBG_RL(&rl, "flow get (dev %s prio %d handle %d block_id %d)", + netdev_get_name(dev), prio, handle, block_id); err = tc_get_flower(ifindex, prio, handle, &flower, block_id); netdev_close(dev); if (err) { @@ -1433,7 +1433,7 @@ netdev_tc_flow_del(struct netdev *netdev OVS_UNUSED, return -ifindex; } - block_id = get_block_id_from_netdev(netdev); + block_id = get_block_id_from_netdev(dev); if (stats) { memset(stats, 0, sizeof *stats);