From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED62A35A933; Wed, 28 Jan 2026 14:44:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769611495; cv=none; b=WAq1+B3rS2+xU/wepLG67xc7TmqFilmPaV52RTw80quNN+kPyMDf8EJ7Y9fzCKy8w6LVViSYw5lmAe3MWl2Pcl5jTzdRWBcgt44ACz3TPQ9Wxe9KL1EaMN8kEINkxsfG6ZlPp4FHMoUcgxDWvmIU5L+ApyQZf2qsJzd5oa3DV2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769611495; c=relaxed/simple; bh=VpDqKc4rf3OC6EocT4g5M791ylmLo4jg4ZC1gd32OZc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=gJIwqTFh6uoA6igrjGxxJwcHq32RiMg1YDz8Bb+k13CNktnkAxsNPlZLG5KM6Jq1RAQM9nty4yDJes4pJJzR7gI2CPe2pWSrFh5jpXnUY/29OwuZepfLxLwBO1eA07KdNB9PVCpQLOC+0WAKcGtaqy8yG44uRtNHOqUyD97wVZM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GbQM+qyE; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Q17C4LQc; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GbQM+qyE"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Q17C4LQc" From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1769611491; 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: in-reply-to:in-reply-to:references:references; bh=VpDqKc4rf3OC6EocT4g5M791ylmLo4jg4ZC1gd32OZc=; b=GbQM+qyELe0Gdrw4WAOlaz+JzylGlMOr6U70ewG4peNrJi/YreMdn/vavIhwOy55Qdh7B3 gGtcBdOD8c+176kY/qb75U2xCHwXmEDHXCR18Eiet53DlGQ+2rWTfbtpJGe9x+b85465oH 2iHV7+4nJ19Mqa//c6iUPEbFGqYFR2LU/BEjULhas7kdWIcEudHl/4L/UOvYIyBGKv10wv xO5OVzm9cfeyQues35wfZHunnFXcrufqdhsyljFsm/TIgy3C5muXCAFlonCPhilTu/WHdH g2yFrCS7UdeIpMBfuj0trOdIbxx/hXHNCyRIp4VfDZBOLC/x8Uc2rPdhn5fXrg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1769611491; 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: in-reply-to:in-reply-to:references:references; bh=VpDqKc4rf3OC6EocT4g5M791ylmLo4jg4ZC1gd32OZc=; b=Q17C4LQcrdmD8KMsWtCchKgd7CCDOYieFU40cgQYAUlZJW+ztRmSfdxLeD+mXg1mvv75G0 Ppe2pUpOFbwhKLAA== To: Breno Leitao , Breno Leitao , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , pmladek@suse.com Cc: Greg Kroah-Hartman , Steven Rostedt , Sergey Senozhatsky , Andrew Morton , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, asantostc@gmail.com, efault@gmx.de, gustavold@gmail.com, calvin@wbinvd.org, jv@jvosburgh.net, mpdesouza@suse.com, kernel-team@meta.com, Simon Horman Subject: Re: [PATCH net-next v5 2/4] netconsole: extract message fragmentation into send_msg_udp() In-Reply-To: <20260128-nbcon-v5-2-93b4ddbc181a@debian.org> References: <20260128-nbcon-v5-0-93b4ddbc181a@debian.org> <20260128-nbcon-v5-2-93b4ddbc181a@debian.org> Date: Wed, 28 Jan 2026 15:50:50 +0106 Message-ID: <87fr7plrtp.fsf@jogness.linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On 2026-01-28, Breno Leitao wrote: > Extract the message fragmentation logic from write_msg() into a > dedicated send_msg_udp() function. This improves code readability > and prepares for future enhancements. > > The new send_msg_udp() function handles splitting messages that > exceed MAX_PRINT_CHUNK into smaller fragments and sending them > sequentially. This function is placed before send_ext_msg_udp() > to maintain a logical ordering of related functions. > > No functional changes - this is purely a refactoring commit. > > Reviewed-by: Petr Mladek > Reviewed-by: Simon Horman > Signed-off-by: Breno Leitao Reviewed-by: John Ogness