Skip to content

Commit da99a76

Browse files
committed
fix #1078: add ff_kni_is_runtime_owner to ff_kni_enqueue stat update
ff_kni_init and ff_kni_alloc were updated in f7961b0 to allocate kni_stat for the runtime owner secondary, but the enqueue error path still only updated stats for the owner thread (primary).
1 parent f250ad1 commit da99a76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/ff_dpdk_kni.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ ff_kni_enqueue(enum FilterReturn filter, uint16_t port_id, struct rte_mbuf *pkt)
604604
return 0;
605605

606606
error:
607-
if (ff_kni_is_owner_thread()) {
607+
if (ff_kni_is_owner_thread() || ff_kni_is_runtime_owner()) {
608608
kni_stat[port_id]->rx_dropped++;
609609
}
610610
rte_pktmbuf_free(pkt);

0 commit comments

Comments
 (0)