summaryrefslogtreecommitdiff
path: root/drivers/net/wwan/iosm/iosm_ipc_devlink.c
diff options
context:
space:
mode:
authorGustavo Luiz Duarte <gustavold@gmail.com>2025-11-19 16:14:49 -0800
committerJakub Kicinski <kuba@kernel.org>2025-11-20 18:47:18 -0800
commit7279b718b431701137f9943434229915222a70b8 (patch)
tree0bd2adeeb9f2edb5af0974d29a0da61b25f3871e /drivers/net/wwan/iosm/iosm_ipc_devlink.c
parent920fa394dcdaf4aa9c89433d07c3c17fd17dee25 (diff)
netconsole: Simplify send_fragmented_body()
Refactor send_fragmented_body() to use separate offset tracking for msgbody, and extradata instead of complex conditional logic. The previous implementation used boolean flags and calculated offsets which made the code harder to follow. The new implementation maintains independent offset counters (msgbody_offset, extradata_offset) and processes each section sequentially, making the data flow more straightforward and the code easier to maintain. This is a preparatory refactoring with no functional changes, which will allow easily splitting extradata_complete into separate userdata and sysdata buffers in the next patch. Signed-off-by: Gustavo Luiz Duarte <gustavold@gmail.com> Reviewed-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20251119-netconsole_dynamic_extradata-v3-1-497ac3191707@meta.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_devlink.c')
0 files changed, 0 insertions, 0 deletions