On Thu, Dec 3, 2026 at 2:48 AM Paolo Abeni <pabe…@redhat.com> wrote:
> Does the above fix anything in practice? If the previous notifier call
> failed, we are low on memory, and even this call will fail. If the
> the qdisc change failed, it will leave the queue with unreverted
> partial changes applied.
>
> This change does not looks worthy to me.
Agreed, re-notifying does not fix it under memory pressure.
But the inconsistency remains: after a pfifo_fast failure, the
tun/tap rings and some tx queues keep the new length. I'd like to
fix that.
As Dave suggested for MTU [1], should the change be split into two
steps?
- Prepare: allocate everything first. If any allocation fails, free
it all.
- Commit: swap in the new rings, then notify.
If so, I can send an RFC for net-next.
Best regards,
SeungJong
[1] https://lore.kernel.org/netdev/2014…@davemloft.net/