[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220308211013.1530955-1-robert.hancock@calian.com>
Date: Tue, 8 Mar 2022 15:10:13 -0600
From: Robert Hancock <robert.hancock@...ian.com>
To: netdev@...r.kernel.org
Cc: radhey.shyam.pandey@...inx.com, davem@...emloft.net,
kuba@...nel.org, michal.simek@...inx.com,
linux-arm-kernel@...ts.infradead.org, jwiedmann.dev@...il.com,
Robert Hancock <robert.hancock@...ian.com>
Subject: [PATCH net-next] net: axienet: Use napi_alloc_skb when refilling RX ring
Use napi_alloc_skb to allocate memory when refilling the RX ring in
axienet_poll for more efficiency.
Signed-off-by: Robert Hancock <robert.hancock@...ian.com>
---
drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
index a51a8228e1b7..1da90ec553c5 100644
--- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
+++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
@@ -965,7 +965,7 @@ static int axienet_poll(struct napi_struct *napi, int budget)
packets++;
}
- new_skb = netdev_alloc_skb_ip_align(lp->ndev, lp->max_frm_size);
+ new_skb = napi_alloc_skb(napi, lp->max_frm_size);
if (!new_skb)
break;
--
2.31.1
Powered by blists - more mailing lists