Commit 833e4317 authored by Thorsten Blum's avatar Thorsten Blum Committed by Paolo Abeni
Browse files

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: default avatarThorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250815153334.295431-3-thorsten.blum@linux.dev


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 62a2b350
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment