From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 015573A7586 for ; Fri, 14 Aug 2026 19:29:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786735774; cv=none; b=Kh9ILXNmP+s6hLVrZk+wej80h5C7ggn+fhOxWvSCN2XVPzONtlZ94WBv9KNlfTaSmri77etKEKHERynKACbbeJbceagr7PuefXZiqd+TS5dhKi/s2uvezc/sVK/4URjLICQ/41LbuzbjCfkAYXJUg4ekbl2bi48072KaoYfY+JI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786735774; c=relaxed/simple; bh=EnBn/4jGc6fz/BczIiYdHjSaoMWGvEFwgnzOS2Bp7kg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dkRQ2fSTYdrpZ9yMQ3EnVV+BxNZmGvGZE8YynRd7BDOfIXOWCFjlcogM2bT7BTi/w2Psce4EzXieCCcUCY2eIXyw3ZVvVwOVmSh1sCgS/8+lVxFWWZiRboNDY2B9HsxMhvLYJywC9S9+BPj5xwGsguXhsj5AYEME4FX+yjuBvMI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UEHeMVEa; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UEHeMVEa" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4996c452e95so1109015e9.0 for ; Fri, 14 Aug 2026 12:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786735769; x=1787340569; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=REPk3sv6pnIpoq+hx39FYxJfdGolBo9DSKR94k2Jioc=; b=UEHeMVEa0QQ9/VnQ7o6LCb6zu23AUblHtBgbdbhlmSnFcgsPnOy5Yq8pXwcsV/+fN0 yEBpKxKwkU1rhIVhpLUrnRvIXotoVnIewNi3yE579lcgNxJZT1xtihluEEN4oM50m+n4 6eBTmYn/hCmyY9D6zPc44ZvwkoJJ87N5vnRNhfEwyywDq8/KzoWd5ThHDK38snbR/O/v A0Ou4TCsOg0om6G6b8FvhNfVZcvAGiQKpcc++AvwWBNkFfsMhF6JByWZ4gF6Gx8BL9Ki Urge6pBL/4p8V54VJhHRTvKw00C/cwpQpnVH+KMGplLu6MOYZy4WCPCFnb1tWuFZfe96 9GGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786735769; x=1787340569; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=REPk3sv6pnIpoq+hx39FYxJfdGolBo9DSKR94k2Jioc=; b=UHTXZrctxxscAxpT5tddf7l2s7Q85LI8qUIpewbzhZDCjaeYPJ5yBysy3o3kxwKnyE ubq5ncmMPivv5UWVtzQtiDcjCf8hWPB5NsYY/u4C4lgPSoMvmk1FB28V7W/QKJ7SRM08 56pmz4tMrL34+BeeysN264aNwq/q6Avd/o5n9cNaH3Ti2h3wgNoaLvflAfP3YBqvoQcc 45dvNFWFp1hD3bXaXEqTYXDB6TI3v2xvBrg1WUE1S1/wquhmAX261N+cAMavp3VFZbrW LwRZPyZcbuamfRSzR8tw7hL9YkuH+13csL/T0EMtwqgMlSwT0ARGxI9zXSSgcsVDf3NH Ix8w== X-Forwarded-Encrypted: i=1; AHgh+RpcbyBjfVIA8waWVmRsj9I0e/bWfAix0mym8fMEuXHaC4hx6E3RA7tTFoEtqusWF7VJEyGapuWYjo6q5rA=@vger.kernel.org X-Gm-Message-State: AOJu0Yx8CBae7s4XsVR6pNKdbvhCVnnzy6aCjq4rLsBJZOEGinBE8kt1 JFnVc062cCTVu15rHPu/g1QIUEhH1c2PKX6AmWfOL7ExD1Qh6SKVhWOU X-Gm-Gg: AR+sD10q4jfZaM7zVce9oR04XBam9skNEzPLWqmnpDpvMUbhTJNx7DB5KR59YNhe45N BNr7kcf9b84E3cOgOc2vTw3KjN9apRBaUcJa+g16Omy0LH3SkdyHpaAWgF9Mw/HnJDMpCj3BTNz 7N4zsD8chmUQhXpDub/EmAaH10nfD5j2lx0QTZ56xoOHaRWKcfGoXka0GMCzGrsmN6trM4vzxlG zzgsgOOQU8GYNfT4C9WoxQmJtqCT8AOXbexQLH1YXRtBqgnOWQN4WMg0v2H5xV9p7/OIbd9GbX+ vtQh3YGIeyasveGaAWkAucWxFxQsBcqSxaeKANx1hkgYZ8StNPMuFU/XzKK8ybFgxyF8ky1Ax2e /Dv4I63GRZGuOgl/ay00EA9vSsfNxxxeSmT02ACEIPOYvwxlMiBhjiVAxew780L9+5q/hyTyJjS 5FKhl5nRNmQyLUMlBzF080RW3uubBZiGzfPVv8f/FDF08= X-Received: by 2002:a05:600c:4fd2:b0:499:73ca:c419 with SMTP id 5b1f17b1804b1-4998796a152mr54134925e9.4.1786735768844; Fri, 14 Aug 2026 12:29:28 -0700 (PDT) Received: from localhost ([2620:10d:c092:500::4:391e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49987b36370sm63708695e9.4.2026.08.14.12.29.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2026 12:29:28 -0700 (PDT) From: Gustavo Luiz Duarte Date: Fri, 14 Aug 2026 20:28:58 +0100 Subject: [PATCH net-next v3 7/7] docs: netconsole: document local_ip auto-selection Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260814-netcons_ipv6-v3-7-bc0915e8c75f@gmail.com> References: <20260814-netcons_ipv6-v3-0-bc0915e8c75f@gmail.com> In-Reply-To: <20260814-netcons_ipv6-v3-0-bc0915e8c75f@gmail.com> To: Breno Leitao , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Jonathan Corbet , Shuah Khan Cc: Gustavo Luiz Duarte , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org X-Mailer: b4 0.15.2 An unset local_ip is auto-populated from the egress interface at enable time, but any value the user writes, including 0.0.0.0, is used as-is. This deviates from the behavior prior to "netconsole: use the address family instead of the ipv6 flag", which interpreted 0.0.0.0 as unset. Document this so the distinction between "unset" and "set to 0.0.0.0" is clear. Signed-off-by: Gustavo Luiz Duarte --- Documentation/networking/netconsole.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/networking/netconsole.rst b/Documentation/networking/netconsole.rst index 4ab5d7b05cf1..694bca4803d5 100644 --- a/Documentation/networking/netconsole.rst +++ b/Documentation/networking/netconsole.rst @@ -141,6 +141,11 @@ The interface exposes these parameters of a netconsole target to userspace: transmit_errors Number of packet send errors (read-only) =============== ================================= ============ +local_ip is optional: if it is left unset, netconsole derives a source +address from the egress interface when the target is enabled. Writing any +value to it, including 0.0.0.0, uses that value verbatim and disables the +automatic selection. + The "enabled" attribute is also used to control whether the parameters of a target can be updated or not -- you can modify the parameters of only disabled targets (i.e. if "enabled" is 0). -- 2.55.0