[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120629.163408.1111786778802302299.davem@davemloft.net>
Date: Fri, 29 Jun 2012 16:34:08 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: nhorman@...driver.com
Cc: netdev@...r.kernel.org, vyasevich@...il.com,
linux-sctp@...r.kernel.org
Subject: Re: [PATCH v5] sctp: be more restrictive in transport selection on
bundled sacks
From: Neil Horman <nhorman@...driver.com>
Date: Fri, 29 Jun 2012 16:15:29 -0400
> + /* Has this transport moved the ctsn since we last sacked */
> + __u32 sack_generation;
> +
...
> + __u32 sack_generation;
These are __u32 but they only take on the value '1' or '0'. Please
use bool and give it a more reasonable name, a name that describes
how it is really a predicate.
> - struct sctp_association *asoc;
> struct timer_list *timer;
> - asoc = pkt->transport->asoc;
> + struct sctp_association *asoc = pkt->transport->asoc;
> +
Please leave asoc where it was, on the first line. We encourage
listing local variables such that the longest lines come first,
then gradually shorter and short lines.
> + /*
> + * Once we have a sack generated, check to see what our sack
> + * generation is, if its 0, reset the transports to 0, and reset
Please format:
/* Like
* this.
*/
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists