Thread (8 messages) 8 messages, 3 authors, 2024-02-29

Re: [PATCH] net: ethernet: ti: am65-cpsw: Add minimal XDP support

From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-02-26 23:18:42
Also in: bpf, dri-devel, linux-media, lkml

+static struct sk_buff *am65_cpsw_alloc_skb(struct net_device *ndev, unsigned int len)
+{
+	struct page *page;
+	struct sk_buff *skb;
+
+	page = dev_alloc_pages(0);
You are likely to get better performance if you use the page_pool.

When FEC added XDP support, the first set of changes was to make use
of page_pool. That improved the drivers performance. Then XDP was
added on top. Maybe you can follow that pattern.

      Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help