Hi,

On Thu, 29 Oct 2026 07:19:56 +0100, Simon Schippers 
<[email protected]> wrote:
> On 10/28/26 20:45, Antonio Quartulli wrote:
> > Hi Simon,
> > 
> > thank you for your patch and congratulations for the research work!
> > 
>
> Thank you!
>
> > On 28/10/2026 15:46, Simon Schippers wrote:
> >> When the internal ring of a TUN/TAP device is full, the kernel silently
> >> drops packets, bypassing any qdisc. TCP then sees loss, retransmits and
> >> shrinks its congestion window.
> >>
> >> My series "tun/tap & vhost-net: apply qdisc backpressure on full
> >> ptr_ring to reduce TX drops" [1] adds IFF_BACKPRESSURE in Linux 7.3
> >> (commit d00c7369ef24 "tun/tap & vhost-net: stop tail-drop when
> >> IFF_BACKPRESSURE is set"). It stops the TX queue instead, so the qdisc
> >> holds the packets and applies its AQM and fairness.
> > 
> > Inside the linux kernel this works reasonably well.
> > We are just playing with several of this knobs in DCO at the moment.
> > 
>
> I see. The ovpn driver never calls netif_tx_stop_queue(), so DCO has no
> qdisc backpressure either, right?
>

Not quite. The current ovpn UDP datapath has no bounded driver ring
analogous to tun's ptr_ring: the device is IFF_NO_QUEUE, and
ndo_start_xmit consumes the skb and performs or submits encryption
directly. Therefore there is no full ovpn queue whose availability needs
to be signalled with netif_tx_stop_queue. In this design, synchronous
processing naturally paces the caller.

TCP transport and asynchronous crypto have separate queueing
considerations, but I think they are not the tun problem addressed by
IFF_BACKPRESSURE.

-- 
Ralf Lici
Mandelbit Srl


_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to