From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: selftests/net: devmem.py: add check_rx_large_niov Date: Fri, 05 Jun 2026 06:49:29 +1000 Message-ID: In-Reply-To: <20260603-tcpdm-large-niovs-v1-4-f37a4ac6726c@meta.com> References: <20260603-tcpdm-large-niovs-v1-0-f37a4ac6726c@meta.com> <20260603-tcpdm-large-niovs-v1-4-f37a4ac6726c@meta.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Patch Review **Substantive issue:** 1. **Python string escape vs shell escape in `data_pipe`:** ```python data_pipe = (f"yes $(echo -e \x01\x02\x03\x04\x05\x06) | " f"head -c {size} | {socat}") ``` The `\x01` through `\x06` are Python escape sequences, producing literal control-character bytes (SOH, STX, etc.) embedded in the shell command string. While this technically works (echo -e will pass through raw bytes that aren't backslash sequences), it's fragile -- some shells or SSH transports may not handle embedded control characters in command strings reliably. Consider using raw strings (`r"\x01..."`) so that `echo -e` receives the actual backslash-escape sequences, or use a different approach for generating binary test data (e.g., `dd if=/dev/urandom bs={size} count=1`). **Minor:** 2. **Probe caching for `rx_buf_size` variants** in `require_devmem()` is well-designed -- it caches per-size probe results to avoid redundant probes across the sweep. 3. **Test coverage is good** -- the sweep `[1024, 4096, 8192, 16384, 32768, 65536]` nicely brackets the 16384 niov boundary (sub-niov, exact-niov, 2x, 4x). --- Generated by Claude Code Patch Reviewer