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.
This commit is contained in:
Frédéric Lécaille 2022-06-29 11:24:35 +02:00
parent ad548b54a7
commit 95a8dfb4c7

View File

@ -5575,7 +5575,7 @@ static void qc_lstnr_pkt_rcv(unsigned char *buf, const unsigned char *end,
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. */