Netdev List
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: SeungJong Ha <engineer.jjhama@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>,
	Willem de Bruijn <willemb@google.com>,
	Simon Horman <horms@kernel.org>,
	Jason Wang <jasowangio@gmail.com>,
	John Fastabend <john.fastabend@gmail.com>,
	netdev@vger.kernel.org
Subject: Re: [PATCH net] net: re-notify tx_queue_len after rolling back a failed change
Date: Fri, 4 Dec 2026 10:29:38 +0100	[thread overview]
Message-ID: <5fba4681-e148-4e59-b46a-48b5a2a6c665@redhat.com> (raw)
In-Reply-To: <CAGAB666kgzt9SF+QgAQ3ZnwhP3624P64Z89e5+uUrW0Pkkkdzg@mail.gmail.com>

On 12/4/26 06:36, SeungJong Ha wrote:
> On Thu, Dec 3, 2026 at 2:48 AM Paolo Abeni <pabeni@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.
Preallocation sounds like a better refactory. I have a feeling this
could become somewhat huge. Let's see how it goes.

/P

      reply	other threads:[~2026-12-04  9:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  2:54 [PATCH net] net: re-notify tx_queue_len after rolling back a failed change SeungJong Ha
2026-12-02 17:48 ` Paolo Abeni
2026-12-04  5:36   ` SeungJong Ha
2026-12-04  9:29     ` Paolo Abeni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5fba4681-e148-4e59-b46a-48b5a2a6c665@redhat.com \
    --to=pabeni@redhat.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=engineer.jjhama@gmail.com \
    --cc=horms@kernel.org \
    --cc=jasowangio@gmail.com \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox