Page MenuHomeFreeBSD

sglist: Add sglist_append_single_mbuf().
ClosedPublic

Authored by jhb on May 5 2021, 9:30 PM.

Details

Summary

This function appends the contents of a single mbuf to an sglist
rather than an entire mbuf chain.

Sponsored by: Netflix

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhb requested review of this revision.May 5 2021, 9:30 PM
This revision is now accepted and ready to land.May 6 2021, 2:18 PM

I kind of wish "sglist_append_mbuf" was the "single" version and there was a separate name for the "append a mbuf chain" variant, but that ship has sailed I think.

In D30135#676970, @jhb wrote:

I kind of wish "sglist_append_mbuf" was the "single" version and there was a separate name for the "append a mbuf chain" variant, but that ship has sailed I think.

Yeah I had the same thought while reading these diffs.

This revision was automatically updated to reflect the committed changes.