summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-08-15 17:33:33 +0200
committerPaolo Abeni <pabeni@redhat.com>2025-08-21 10:12:11 +0200
commit833e43171b00caef456a7128718e43453f77b2e7 (patch)
tree40937ffdd82d11d2d29b3d9bad827a6dd6aa9b2c /rust/helpers/helpers.c
parent62a2b3502573091dc5de3f9acd9e47f4b5aac9a1 (diff)
net: pktgen: Use min()/min_t() to improve pktgen_finalize_skb()
Use min() and min_t() to improve pktgen_finalize_skb() and avoid calculating 'datalen / frags' twice. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20250815153334.295431-3-thorsten.blum@linux.dev Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions