diff options
author | Yunsheng Lin <[email protected]> | 2024-02-28 17:30:11 +0800 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-03-05 11:38:14 +0100 |
commit | 4051bd8129ac6c1faf447264aa7a8f91feb778b8 (patch) | |
tree | 34284c7d54dd984e796ac9f869f9ce6492553934 /lib/crypto/mpi/mpi-mod.c | |
parent | a0727489ac22d6fbd2e390d38a51193bba61da83 (diff) |
vhost/net: remove vhost_net_page_frag_refill()
The page frag in vhost_net_page_frag_refill() uses the
'struct page_frag' from skb_page_frag_refill(), but it's
implementation is similar to page_frag_alloc_align() now.
This patch removes vhost_net_page_frag_refill() by using
'struct page_frag_cache' instead of 'struct page_frag',
and allocating frag using page_frag_alloc_align().
The added benefit is that not only unifying the page frag
implementation a little, but also having about 0.5% performance
boost testing by using the vhost_net_test introduced in the
last patch.
Signed-off-by: Yunsheng Lin <[email protected]>
Acked-by: Jason Wang <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions