Skip to content

Replace scatter-gather with direct copy for NHDLC framing#22

Open
MadRajib wants to merge 1 commit into
linux-msm:masterfrom
MadRajib:nhdlc_queue
Open

Replace scatter-gather with direct copy for NHDLC framing#22
MadRajib wants to merge 1 commit into
linux-msm:masterfrom
MadRajib:nhdlc_queue

Conversation

@MadRajib
Copy link
Copy Markdown

Replace iovec-based packet assembly with direct linear copy in queue_push_ndlc_flow().
The scatter-gather approach was creating temporary stack variables and looping through iovecs unnecessarily for simple header + msg + tail construction.

Scatter-gather makes sense for zero-copy I/O, not for building new packets from scratch.

Replace iovec-based packet assembly with direct linear copy in
queue_push_ndlc_flow(). The scatter-gather approach was creating
temporary stack variables and looping through iovecs unnecessarily
for simple header + msg + tail construction.

Scatter-gather makes sense for zero-copy I/O, not for building
new packets from scratch.

Signed-off-by: Madrajib Lab <madhabsharma94@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant