From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: net: devmem: allow rx-buf-size > PAGE_SIZE per binding
Date: Fri, 05 Jun 2026 06:49:28 +1000 [thread overview]
Message-ID: <review-overall-20260603-tcpdm-large-niovs-v1-0-f37a4ac6726c@meta.com> (raw)
In-Reply-To: <20260603-tcpdm-large-niovs-v1-0-f37a4ac6726c@meta.com>
Overall Series Review
Subject: net: devmem: allow rx-buf-size > PAGE_SIZE per binding
Author: Bobby Eshleman <bobbyeshleman@gmail.com>
Patches: 5
Reviewed: 2026-06-05T06:49:28.207081
---
This is a well-motivated 4-patch series by Bobby Eshleman (Meta) that allows devmem TCP dmabuf bindings to use niov sizes larger than PAGE_SIZE. The ~19% reduction in app sys% CPU at 64K niovs vs 4K niovs is compelling. The architecture is clean: a new `NETDEV_A_DMABUF_RX_BUF_SIZE` netlink attribute lets userspace request a larger niov size at bind time, stored as `niov_shift` in the binding, with all PAGE_SIZE/PAGE_SHIFT arithmetic generalized. The udmabuf patch coalesces sg entries to match folio granularity, enabling the selftest to use MFD_HUGETLB backing for large niovs.
**Key concerns:**
1. **No kernel-side upper bound on `rx_buf_size`** -- the selftest enforces a 2MB cap, but the kernel accepts anything up to 2^31 (the largest power-of-two u32). An absurdly large niov_shift will fail later at the sg alignment check, but a sensible upper bound (e.g., aligned with the 2MB hugepage limit for current hardware) would provide a better user error.
2. **`netdev-genl-gen.c` is typically auto-generated** -- the hand edits should be verified against regeneration from the updated YAML spec.
3. The series is based on a tree that includes the `vdev` parameter to `net_devmem_bind_dmabuf()` and the folio/offsets refactoring of udmabuf, neither of which is present on drm-next. These are dependencies, not bugs, but worth noting for merge ordering.
Overall the series is in good shape. The issues below are mostly nits and one substantive validation gap.
---
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-06-04 20:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-04 0:42 [PATCH net-next 0/4] net: devmem: allow rx-buf-size > PAGE_SIZE per binding Bobby Eshleman
2026-06-04 0:42 ` [PATCH net-next 1/4] net: devmem: allow rx-buf-size > PAGE_SIZE per dmabuf binding Bobby Eshleman
2026-06-04 20:49 ` Claude review: " Claude Code Review Bot
2026-06-04 0:42 ` [PATCH net-next 2/4] udmabuf: emit one sg entry per pinned folio Bobby Eshleman
2026-06-04 20:49 ` Claude review: " Claude Code Review Bot
2026-06-04 0:43 ` [PATCH net-next 3/4] selftests/net: ncdevmem: add -b option to set rx-buf-size on bind Bobby Eshleman
2026-06-04 20:49 ` Claude review: " Claude Code Review Bot
2026-06-04 0:43 ` [PATCH net-next 4/4] selftests/net: devmem.py: add check_rx_large_niov Bobby Eshleman
2026-06-04 20:49 ` Claude review: " Claude Code Review Bot
2026-06-04 20:49 ` Claude Code Review Bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=review-overall-20260603-tcpdm-large-niovs-v1-0-f37a4ac6726c@meta.com \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox