mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
eth: fbnic: Prefetch packet headers on Rx
Issue a prefetch for the start of the buffer on Rx to try to avoid cache miss on packet headers. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com> Link: https://patch.msgid.link/20250813221319.3367670-5-mohsin.bashr@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
61f9a066c3
commit
9064ab485f
|
|
@ -888,7 +888,7 @@ static void fbnic_pkt_prepare(struct fbnic_napi_vector *nv, u64 rcd,
|
|||
|
||||
/* Build frame around buffer */
|
||||
hdr_start = page_address(page) + hdr_pg_start;
|
||||
|
||||
net_prefetch(pkt->buff.data);
|
||||
xdp_prepare_buff(&pkt->buff, hdr_start, headroom,
|
||||
len - FBNIC_RX_PAD, true);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user