[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <SA1PR02MB85605D085CA75C0022C99E38C70A9@SA1PR02MB8560.namprd02.prod.outlook.com>
Date: Wed, 9 Mar 2022 08:17:00 +0000
From: Radhey Shyam Pandey <radheys@...inx.com>
To: Robert Hancock <robert.hancock@...ian.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"kuba@...nel.org" <kuba@...nel.org>,
Michal Simek <michals@...inx.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"jwiedmann.dev@...il.com" <jwiedmann.dev@...il.com>
Subject: RE: [PATCH net-next] net: axienet: Use napi_alloc_skb when refilling
RX ring
> -----Original Message-----
> From: Robert Hancock <robert.hancock@...ian.com>
> Sent: Wednesday, March 9, 2022 2:40 AM
> To: netdev@...r.kernel.org
> Cc: Radhey Shyam Pandey <radheys@...inx.com>; davem@...emloft.net;
> kuba@...nel.org; Michal Simek <michals@...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.
Minor nit - Good to add some details on "more efficiency" (assume it's perf?)
>
> 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