Re: [PATCH net-next 2/3] net: prestera: add counter HW API

From: Volodymyr Mytnyk [C]
Date: Tue Nov 30 2021 - 07:28:46 EST


> On Tue, 23 Nov 2021 18:58:01 +0200 Volodymyr Mytnyk wrote:
> > + block = prestera_counter_block_lookup_not_full(counter, client);
> > + if (!block) {
>
> if (block)
> return block;

Fixed in v2, thanks.

>
> > + block = kzalloc(sizeof(*block), GFP_KERNEL);
> > + if (!block)
> > + return ERR_PTR(-ENOMEM);
> > +
> > + err = prestera_hw_counter_block_get(counter->sw, client,
> > + &block->id, &block->offset,
> > + &block->num_counters);
>

Regards,
Volodymyr