diff options
author | Furong Xu <0x1207@gmail.com> | 2025-01-03 17:37:33 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-01-07 11:00:02 +0100 |
commit | 51cfbed198ca4aa140babde816387db0e71f09e7 (patch) | |
tree | c56f03e30c6b0c471c07a3cb646bb9e3e7c52a98 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 49afc040f4d707a4149a05180edc42bc590641a4 (diff) |
net: stmmac: Set dma_sync_size to zero for discarded frames
If a frame is going to be discarded by driver, this frame is never touched
by driver and the cache lines never become dirty obviously,
page_pool_recycle_direct() wastes CPU cycles on unnecessary calling of
page_pool_dma_sync_for_device() to sync entire frame.
page_pool_put_page() with sync_size setting to 0 is the proper method.
Signed-off-by: Furong Xu <0x1207@gmail.com>
Link: https://patch.msgid.link/20250103093733.3872939-1-0x1207@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions