diff options
| author | Avi Weiss <thnkslprpt@gmail.com> | 2026-11-09 16:13:44 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-11-11 15:00:55 -0800 |
| commit | f3c790c34d228d46c4a05fe5d001d1bbea444e2b (patch) | |
| tree | 33434321761a51a1a6aabddde374736ca8a6d9f2 /tools/perf/scripts/python/bin | |
| parent | 3e8e22a1007a6337ba2400b3ea87077947005c20 (diff) | |
net: ena: avoid RX copybreak for multi-descriptor packets
ena_rx_skb() selects the copybreak path based on the first RX
descriptor's length without checking the number of descriptors. When
a packet spans multiple descriptors, this copies only the first
buffer into the skb and fails to recycle the remaining request IDs,
while RX cleanup advances by the full descriptor count.
Restrict copybreak to single-descriptor packets and apply the same
restriction to the rx_copybreak_pkt statistic. Multi-descriptor
packets then use the existing fragment-processing path.
Discovered by comparing the in-tree ENA driver with Amazon's
standalone ENA driver.
Compiled with W=1 under x86_64 defconfig.
Fixes: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: Avi Weiss <thnkslprpt@gmail.com>
Link: https://patch.msgid.link/20261109141343.920187-2-thnkslprpt@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
