From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796376585; b=TFaD7N9YjYGKqFuk8P5O2KxO8UDTJ2jQNTAxyTFF3ApjlpPAS4byVOraO06NrHDi9s5i plGwmYfEKRu+H2XiR2WwJJaHdSZXxVGXbo1tsLZNNNoxNgJdZrCzMrUJjNwTGnyHfj7Ww iWdU4WdS21qF0iSlJ49hJ1abSeXA7GfQfu32smK1A9KA0BWn8Nr1aY+obWOglGno7Jn40 EHFpGVl/7kjnpKIRoLGmPmg1amIIGams1VTp6AGlewx4N2VGiiqWqNL672wtONAMK0Vkb rH2o2MeY2SdcV4tHybNRrEV0x9KjZIJsx7KKVUmKZ8W1DzYovACa6ppuKVKR+hqV1lg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796376585; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Message-ID:Date:MIME-Version:User-Agent:Subject: To:Cc:References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=v/aNnGBlefA+yoezYLphSToYG4vj1oJwBFaWb4/y4cw=; b=F5LRbc8tSRRO7+4g6EgPyRGXmtuqU/zHu1qWWXAf2qEFnOP9GafXgYvx6O6zxRQJibRc VmEMlrQxKaRtRO1D3LpWlpc+zghCUvARAiZSaq+haUibzuVgmJYTy1rcoR/yZ1tKTQRAS tlk4oujqsJLrVO2skSGzwtXY3R/L8UT9+wZtkzT1Kqwt09aF0HPBiEF7lE/43mzACbYok tX2rG/DvpUBdOQA5wQRsLMuSxyND+FsBG1k3lgjwJZetjFnYwpr+p/UvQ2WjHmufwNVJx a5ove8AdtIOlHBEAxQlYQ5MmKaYCS+DgokAEMjwI0XGfBxo3ZI0RfZxa8yKw3qXTMQA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Z85XqMMl; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=IUXgehJR; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14C00606A322 for ; Fri, 4 Dec 2026 09:29:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 14C00606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Z85XqMMl; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=IUXgehJR DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796376585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v/aNnGBlefA+yoezYLphSToYG4vj1oJwBFaWb4/y4cw=; b=Z85XqMMl1Seg4aqHLqHxr9FwJvHwso36Zyu4DgqGIccCgcecfA9nX05qlw+qthfo0rNOT/ qP8NQ3b0WNVVp88/HQdLUjyWQrEsRjiVprx3GysBGGknJGFs8pB0gqy6GloYjilyXkFl8T O/hKg0xWaCl/XX3sG88dBpIuqblHx4Y= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-190-L8Wy5qk7MJyAPCwS1i6XEg-1; Fri, 4 Dec 2026 09:29:42 +0000 X-MC-Unique: L8Wy5qk7MJyAPCwS1i6XEg-1 X-Mimecast-MFC-AGG-ID: L8Wy5qk7MJyAPCwS1i6XEg_1796376581 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-4b9fde3044dso5142205e9.0 for ; Fri, 04 Dec 2026 01:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796376581; x=1796981381; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=v/aNnGBlefA+yoezYLphSToYG4vj1oJwBFaWb4/y4cw=; b=IUXgehJRUR1LR8qm5OiNrGkfUaWWH5l+22Wo8rbRceDeo96/bnr0qYeiuxnaEI6S8t zh8LAadJ/a12hcrjrXjEtuQwphe6bC8oSg3BltbkaNk8PAyW5hwSUarPZpg42jlZIBMg ABGL1BgwGuK+OV+OmKeE8I8q31t1Cvvey8U1+lNvG2kE4wY5w7raMo64ysyr73BxyPHs q82JC1LkL6SgiuQ2KLPs8yw3ZGY7+cqjJQmBSN0wQW4K3nfwL5VmIQ701UHWkFhRZHJo DSEZ88fGI+tvQGipoDFNDZIBdwmtFlgnbhXnDH8MBC+UEzV+yN5+I0Bj8HAxLZqSms3s ZnBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796376581; x=1796981381; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=v/aNnGBlefA+yoezYLphSToYG4vj1oJwBFaWb4/y4cw=; b=taMxudV5LcH4PnDsYNH5YYi+FyFQiH+cwUZMDsxbVj6XmdP0IJ6lpQ2EZU21FpXMWX yYXHKWmCPzv66RyoOo+5FZraC0fI/P1tozeuw/yB7wKCRsVSBx/tB1PmnIxtKO1HBBf3 ZAHSA2db5NqZqa5VXhjZ/eYg4MdVZD+3SUBXXzgPZfFVGme7KTT0yomrLttyRbJgtdZD Fc/sjaR/98BdaKlAIhzHVq1WzLiepQm8TuKGd0yR235d341+EYBiftibY8ANgeAjRq6h +LU2uCjwkC7KD1sbgoa1ZfX17HZ8Lto8v26K5D6Pe3jFniGlE9YuLOAr50gd/ZGymuS7 ONQw== X-Forwarded-Encrypted: i=1; AL+hErHDIeNcaMTPdQVDNGboT+bQdLt204m9Ojwhl+rB/x4UQpYb0Oc8zb7g+lPNzZZGS//MukfyoDQ=@vger.kernel.org X-Gm-Message-State: APuU4Z+g6xmPYfIBeq6k7x9xswzOldXitsEO2Is5cUqvUIJsWafNcter 1I+Jj4uJHmtwmjt0i2ooNkOf4Bez9e8C4YKnHJ0e+QLxqnhvMFPZoXf7CmHu2nVfZGxLql1iN8n Gva7O1PrjgzpBh9soS9X7JBjAlyvZ4TAU4shPdDLUa3Hdydq2l00zZx96Bw== X-Gm-Gg: AZFdTZeC4TNojUbR1PXJW1LYBvp+7f8kGNBb+32rey0TfKuUB23jhmdSbIBY8stogne hcyQcbjlHvfAyzkBq4Q6LHmderRko4E28xJNmPrwOF8MUP/rF++stQ25QqTikG+Dhy0nEbw5KUq N9gpEsM8wBCUXmgS0nT2Li8dOVTntC0yC65hRfEbdCFSV7vuOmrMk8Jm+PaZYmPXatj7iBvg9lF 0X7sDN90kcyGxsvt2JtN0L7QLlLaaOai/t8obTpmwZz30GVk5zzrSGC8XyVjBlwLrzOx06m5nd0 hObpiDQkO8sf1Z+G4ooKob411dHwxJoodNakMwcR89ABXv2i0ZJdMVWb+M6P8vfIcwliI6e+7xY ZqCg+RMwolbWZZVkVCztoOwwva8FfX652xh/a/XKo1Vup+f3hMbRu8lZn8g02eBAooARVdLuhUL 2937xf+/p8I+J67ibazZnpG+Y/GtuqDkkEk8nggfgzfvI= X-Received: by 2002:a05:600c:1d05:b0:4bb:7033:c92f with SMTP id 5b1f17b1804b1-4bbeb8cf04cmr24861745e9.11.1796376580993; Fri, 04 Dec 2026 01:29:40 -0800 (PST) X-Received: by 2002:a05:600c:1d05:b0:4bb:7033:c92f with SMTP id 5b1f17b1804b1-4bbeb8cf04cmr24861385e9.11.1796376580599; Fri, 04 Dec 2026 01:29:40 -0800 (PST) Received: from [192.168.88.30] (ip231-128-192-82.pool-bba.aruba.it. [82.192.128.231]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbea2acc6esm45146375e9.14.2026.12.04.01.29.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 01:29:40 -0800 (PST) Message-ID: <5fba4681-e148-4e59-b46a-48b5a2a6c665@redhat.com> Date: Fri, 4 Dec 2026 10:29:38 +0100 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net] net: re-notify tx_queue_len after rolling back a failed change To: SeungJong Ha Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Willem de Bruijn , Simon Horman , Jason Wang , John Fastabend , netdev@vger.kernel.org References: <20261125-tc1-txqlen-renotify-v1-1-6c8e9c4d0503@gmail.com> Content-Language: en-US From: Paolo Abeni In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/4/26 06:36, SeungJong Ha wrote: > On Thu, Dec 3, 2026 at 2:48 AM Paolo Abeni 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