On 23 Nov 2026, at 16:25, Aaron Conole wrote:
> Eelco Chaudron via dev <[email protected]> writes:
>
>> When a DPDK port with an active egress QoS configuration is
>> destroyed, common_destruct() frees the ingress policer and
>> sw_stats but never calls qos_conf->ops->qos_destruct() on
>> the egress QoS configuration. For the trtcm-policer
>> implementation, qos_destruct() also frees an hmap of queues,
>> so this leaks memory.
>>
>> Add the missing qos_destruct() call in common_destruct().
>>
>> Fixes: 0bf765f753fd ("netdev_dpdk.c: Add QoS functionality.")
>> Signed-off-by: Eelco Chaudron <[email protected]>
>> ---
>> lib/netdev-dpdk.c | 7 +++++++
>> 1 file changed, 7 insertions(+)
>
> Thanks Eelco - I got a bit confused for a second and started looking at
> the ovsrcu_postpone vs the direct call to qos_destruct, but if I compare
> with ingress_policer, we do the direct release in the destructor. Maybe
> we could consider a "consistency" refactor around this to be consistent
> with 'ovsrcu_postpone' calls, but for this change:
>
> Reviewed-by: Aaron Conole <[email protected]>
Thanks for the review Aaron. We can take a look at the RCU part in a later
patch (will add it to my to-do list ;).
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev