Skip to content

Commit 594afe8

Browse files
Linda Wangkevintraynor
authored andcommitted
netdev-offload-dpdk: Fix vport hw-offload stat.
For vport devices hardware offload counters were being incremented on the physical device but decremented on the vport, causing incorrect statistics that didn't return to zero when flows are removed. Fix by using physdev instead of netdev for counter decrements to match the increment behavior. Fixes: 0e6366c ("netdev-offload-dpdk: Implement hw-offload statistics read.") Signed-off-by: Linda Wang <[email protected]> Signed-off-by: Kevin Traynor <[email protected]>
1 parent cb4dd87 commit 594afe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/netdev-offload-dpdk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,7 @@ netdev_offload_dpdk_flow_destroy(struct ufid_to_rte_flow_data *rte_flow_data)
23752375
unsigned int tid = netdev_offload_thread_id();
23762376

23772377
data = (struct netdev_offload_dpdk_data *)
2378-
ovsrcu_get(void *, &netdev->hw_info.offload_data);
2378+
ovsrcu_get(void *, &physdev->hw_info.offload_data);
23792379
data->rte_flow_counters[tid]--;
23802380

23812381
VLOG_DBG_RL(&rl, "%s/%s: rte_flow 0x%"PRIxPTR

0 commit comments

Comments
 (0)