On 11/24/26 10:52, David Marchand wrote:
The queue level QoS callback can fail (eg. EINVAL for a queue that is
not configured on a trtcm-policer port) without filling the statistics
structure. But netdev_dpdk_get_queue_stats() dropped the callback return
value, so ofproto would then serialize an uninitialized stack structure
into OpenFlow queue statistics replies, and the qos/show appctl print
garbage values.

Propagate the error, so that the caller can report an invalid queue.

Fixes: 23c01b196ff7 ("netdev-dpdk: Add support for multi-queue QoS to the DPDK 
datapath")
Signed-off-by: David Marchand<[email protected]>
---
  lib/netdev-dpdk.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Kevin Traynor <[email protected]>


_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to