Skip to content

Commit

Permalink
net: clarify SO_DEVMEM_DONTNEED behavior in documentation
Browse files Browse the repository at this point in the history
Document new behavior when the number of frags passed is too big.

Signed-off-by: Mina Almasry <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
mina authored and kuba-moo committed Nov 12, 2024
1 parent f2685c0 commit 102d140
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Documentation/networking/devmem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,15 @@ The user must ensure the tokens are returned to the kernel in a timely manner.
Failure to do so will exhaust the limited dmabuf that is bound to the RX queue
and will lead to packet drops.

The user must pass no more than 128 tokens, with no more than 1024 total frags
among the token->token_count across all the tokens. If the user provides more
than 1024 frags, the kernel will free up to 1024 frags and return early.

The kernel returns the number of actual frags freed. The number of frags freed
can be less than the tokens provided by the user in case of:

(a) an internal kernel leak bug.
(b) the user passed more than 1024 frags.

Implementation & Caveats
========================
Expand Down

0 comments on commit 102d140

Please sign in to comment.