On Tue, Aug 22, 2023 at 07:00:49PM +0000, Hawkins, Nick wrote: > > > <include/net/page_pool/helpers.h> > > Hi Andrew, > > I can't seem to find this file in linux master. Where is it? ~/linux$ ls include/net/page_pool/helpers.h include/net/page_pool/helpers.h When you say master, do you mean net-next/main? This is a network driver, so you should be based on top of that tree. https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html#netdev-faq > > Take a look at driver/net/ethernet/freescale/fec_main.c That > > driver/device is of similar complexity to yours. It had a recent > > change from its own buffer management to page pool. It > > started with > > I have looked over this driver and have a couple questions > about the pages in general. > > How do I determine what the correct pool size should be for the > RX and TX? There has been some recent discussion about that. Search the netdev list over the last couple of week. > I must admit I am not familiar with XDP. > Is it required for the page pool library? Nope, not required at all. The FEC driver was first converted to page pool, and then XDP support added. The conversion to page pool made the driver faster, it could handle more packets per second. That is why i suggested using it, plus it means less driver code, which means less bugs. Andrew