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: <CAPNVh5eKjgKBinsVs=6SZ0uo9vacji5qztsazUodEnzppAD4pg@mail.gmail.com>
Date:   Tue, 4 Dec 2018 11:10:55 -0800
From:   Peter Oskolkov <posk@...gle.com>
To:     stephen@...workplumber.org
Cc:     davem@...emloft.net, netdev@...r.kernel.org, posk.devel@...il.com,
        Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH net-next] net: netem: use a list in addition to rbtree

Thanks, Stephen!

I don't care much about braces either. David, do you want me to send a
new patch with braces moved around?

On Tue, Dec 4, 2018 at 9:56 AM Stephen Hemminger
<stephen@...workplumber.org> wrote:
>
> I like this, it makes a lot of sense since packets are almost
> always queued in order.
>
> Minor style stuff you might want to fix (but don't have to).
>
> > +                             if (!last ||
> > +                                 t_last->time_to_send > last->time_to_send) {
> > +                                     last = t_last;
> > +                             }
>
> I don't think you need braces here for single assignment.
>
> > +static void netem_erase_head(struct netem_sched_data *q, struct sk_buff *skb)
> > +{
> > +     if (skb == q->t_head) {
> > +             q->t_head = skb->next;
> > +             if (!q->t_head)
> > +                     q->t_tail = NULL;
> > +     } else
> > +             rb_erase(&skb->rbnode, &q->t_root);
>
> Checkpatch wants both sides of if/else to have brackets.
> Personally, don't care.
>
> Reviewed-by: Stephen Hemminger <stephen@...workplumber.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ