]> www.infradead.org Git - users/hch/misc.git/commit
net: ti: icssg-prueth: Use page_pool API for RX buffer allocation
authorRoger Quadros <rogerq@kernel.org>
Wed, 5 Mar 2025 10:14:20 +0000 (15:44 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Mar 2025 10:09:55 +0000 (11:09 +0100)
commit46eeb90f03e03d5e8f7f9f1f0eb0792104fc5f86
treeb2f92edb50257c9731ae3172108a0e5861c0f038
parent40587f749df216889163dd6e02d88ad53e759e66
net: ti: icssg-prueth: Use page_pool API for RX buffer allocation

This is to prepare for native XDP support.

The page pool API is more faster in allocating pages than
__alloc_skb(). Drawback is that it works at PAGE_SIZE granularity
so we are not efficient in memory usage.
i.e. we are using PAGE_SIZE (4KB) memory for 1.5KB max packet size.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Signed-off-by: Meghana Malladi <m-malladi@ti.com>
Link: https://patch.msgid.link/20250305101422.1908370-2-m-malladi@ti.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/ti/Kconfig
drivers/net/ethernet/ti/icssg/icssg_common.c
drivers/net/ethernet/ti/icssg/icssg_prueth.h
drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.c