aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorThomas Fourier <fourier.thomas@gmail.com>2025-06-25 16:16:24 +0200
committerJakub Kicinski <kuba@kernel.org>2025-06-27 16:59:57 -0700
commitd72411d20905180cdc452c553be17481b24463d2 (patch)
tree60f3149ef5f6504a4ceabaa93840b2102be32bbc /tools/perf/scripts/python/export-to-postgresql.py
parentdoc: tls: socket needs to be established to enable ulp (diff)
downloadwireguard-linux-d72411d20905180cdc452c553be17481b24463d2.tar.xz
wireguard-linux-d72411d20905180cdc452c553be17481b24463d2.zip
ethernet: atl1: Add missing DMA mapping error checks and count errors
The `dma_map_XXX()` functions can fail and must be checked using `dma_mapping_error()`. This patch adds proper error handling for all DMA mapping calls. In `atl1_alloc_rx_buffers()`, if DMA mapping fails, the buffer is deallocated and marked accordingly. In `atl1_tx_map()`, previously mapped buffers are unmapped and the packet is dropped on failure. If `atl1_xmit_frame()` drops the packet, increment the tx_error counter. Fixes: f3cc28c79760 ("Add Attansic L1 ethernet driver.") Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com> Link: https://patch.msgid.link/20250625141629.114984-2-fourier.thomas@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions