[LEDE-DEV] [PATCH 3/3] ag71xx: Switch to napi_alloc_frag.

Rosen Penev rosenp at gmail.com
Tue Feb 6 14:27:30 PST 2018


Seems to perform slightly better.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 .../ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
index 13f500b..8b8355a 100644
--- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
+++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
@@ -229,7 +229,7 @@ static int ag71xx_ring_rx_init(struct ag71xx *ag)
 		struct ag71xx_desc *desc = ag71xx_ring_desc(ring, i);
 
 		if (!ag71xx_fill_rx_buf(ag, &ring->buf[i], offset,
-					netdev_alloc_frag)) {
+					napi_alloc_frag)) {
 			ret = -ENOMEM;
 			break;
 		}
-- 
2.7.4




More information about the Lede-dev mailing list