BUG/MINOR: quic: Dropped packets not counted (with RX buffers full)
When the connection RX buffer is full, the received packets are dropped.
Some of them were not taken into an account by the ->dropped_pkt counter.
This very simple patch has no impact at all on the packet handling workflow.
Must be backported to 2.6.
diff --git a/src/xprt_quic.c b/src/xprt_quic.c
index e55507d..0be3e64 100644
--- a/src/xprt_quic.c
+++ b/src/xprt_quic.c
@@ -5575,7 +5575,7 @@
if (b_tail(&qc->rx.buf) + b_cspace < b_wrap(&qc->rx.buf)) {
TRACE_PROTO("Packet dropped",
QUIC_EV_CONN_LPKT, qc, NULL, NULL, qv);
- goto err;
+ goto drop;
}
/* Let us consume the remaining contiguous space. */