lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9763798a76af3b392bf324af6fe3347b46fbd40c.camel@kernel.org>
Date:   Thu, 27 May 2021 11:52:22 -0700
From:   Saeed Mahameed <saeed@...nel.org>
To:     Parav Pandit <parav@...dia.com>,
        "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>
Cc:     "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        Tariq Toukan <tariqt@...dia.com>, Eli Cohen <elic@...dia.com>
Subject: Re: [net-next 17/17] net/mlx5: Improve performance in SF allocation

On Thu, 2021-05-27 at 05:36 +0000, Parav Pandit wrote:
> 
> > From: Saeed Mahameed <saeed@...nel.org>
> > Sent: Thursday, May 27, 2021 10:06 AM
> > From: Eli Cohen <elic@...dia.com>
> > 
> > +                       continue;
> >                 }
> > +
> > +               if (hwc->sfs[i].usr_sfnum == usr_sfnum)
> > +                       return -EEXIST;
> >         }
> > -       return -ENOSPC;
> > +
> > +       if (free_idx == -1)
> > +               return -ENOSPC;
> > +
> > +       hwc->sfs[free_idx].usr_sfnum = usr_sfnum;
> > +       hwc->sfs[free_idx].allocated = true;
> > +       return 0;
> This is incorrect. It must return the free_index and not zero.

Thanks Parav, I will drop the patches,
Please post those comments internally so Eli will handle, I waited for
your comments internally for weeks.



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ