[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200630122108.03110c7d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Tue, 30 Jun 2020 12:21:08 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Ioana Ciornei <ioana.ciornei@....com>
Cc: davem@...emloft.net, netdev@...r.kernel.org
Subject: Re: [PATCH net-next 1/2] dpaa2-eth: send a scatter-gather FD
instead of realloc-ing
On Mon, 29 Jun 2020 13:39:53 +0300 Ioana Ciornei wrote:
> +static void dpaa2_eth_sgt_cache_drain(struct dpaa2_eth_priv *priv)
> +{
> + struct dpaa2_eth_sgt_cache *sgt_cache;
> + u16 count;
> + int k, i;
> +
> + for_each_online_cpu(k) {
each _possible_ cpu, I think.
> + sgt_cache = per_cpu_ptr(priv->sgt_cache, k);
> + count = sgt_cache->count;
> +
> + for (i = 0; i < count; i++)
> + kfree(sgt_cache->buf[i]);
> + sgt_cache->count = 0;
> + }
> +}
Powered by blists - more mailing lists