Re: [net-next-2.6 PATCH v5 5/5 RFC] TCPCT part1e: initial SYN exchange with SYNACK data

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?=
Date: Tuesday, November 10, 2009 - 6:32 pm

On Tue, 10 Nov 2009, William Allen Simpson wrote:


I guess there's misunderstanding here. Yes, if you bring in new helpers 
that solely are used with your feature, then it that feature patch (and 
I found DaveM commenting specifically this point I think), or right 
beforehand with a clear note that it will be used in the subsequent patch. 
But if there are uses in the existing code without any of your changes, 
add the helpers and convert existing callers in a single go without doing 
some other things (preferrably convert all callers, not just those you 
intend to touch -- there is nothing extraordinary in this, other people do 
the same kind of cleaning up work while they go, so please don't find that 
this is something we try to force specifically for you :-)). ...Therefore 
each change becomes rather self-sufficient to understand and review. There 
was serious problems in your series in this as I constantly had to jump 
between 3 patches to see what you said (changed) in the other. But also, 
please don't make this an over-statement, I'd still occassionally have to 
do that "patch hopping" even if nicely split (so this is not something to 
be turned into all in a single patch statement :-)).

On positive side, there certainly has been clear progress already, as 
patches 1 and 2 were quite nice already (except for some weird local 
initializer order change which I could sort of "tolerate" but I didn't 
find any particular reason why those had to be switched around.

And, one thing to not be afraid is making many short patches (nor long 
one either). So if a self-contained change is a small one do it such and 
no more. ...It is often so that you will be doing many relatively small 
changes first to support the actual large one, and those small changes 
might actually not end up being that small in lines if there are e.g. 
multiple callsites converted but nevertheless they often are rather 
simple, so that a quick browsing will already be enough to reveal that it 
is ok (like in the MSS define change you made).


Only if the large patch is only for a single logical change. A 
syntax cleanup, literal cleanup, cleanup to use helpers and a feature 
patch are not logically same changes, and thus should be separated.
It's like you have already being doing for a part of the changes. Many 
times the cleanup things are even such that they would be beneficial even 
without any feature addition (but nobody has just done them so far).

-- 
 i.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[net-next-2.6 PATCH v5 0/5 RFC] TCPCT part1: cookie option ..., William Allen Simpson, (Mon Nov 9, 9:07 am)
[net-next-2.6 PATCH v5 1/5 RFC] TCPCT part 1a: add request ..., William Allen Simpson, (Mon Nov 9, 9:12 am)
[net-next-2.6 PATCH v5 2/5 RFC] TCPCT part1b: TCP_MSS_DEFA ..., William Allen Simpson, (Mon Nov 9, 9:24 am)
[net-next-2.6 PATCH v5 3/5 RFC] TCPCT part1c: sysctl_tcp_c ..., William Allen Simpson, (Mon Nov 9, 9:33 am)
[net-next-2.6 PATCH v5 4/5 RFC] TCPCT part1d: generate Res ..., William Allen Simpson, (Mon Nov 9, 9:50 am)
[net-next-2.6 PATCH v5 5/5 RFC] TCPCT part1e: initial SYN ..., William Allen Simpson, (Mon Nov 9, 10:05 am)
Re: [net-next-2.6 PATCH v5 5/5 RFC] TCPCT part1e: initial ..., =?ISO-8859-15?Q?Ilpo ..., (Mon Nov 9, 10:05 pm)
Re: [net-next-2.6 PATCH v5 3/5 RFC] TCPCT part1c: sysctl_t ..., =?ISO-8859-15?Q?Ilpo ..., (Mon Nov 9, 10:31 pm)
Re: [net-next-2.6 PATCH v5 5/5 RFC] TCPCT part1e: initial ..., William Allen Simpson, (Tue Nov 10, 6:41 am)
Re: [net-next-2.6 PATCH v5 5/5 RFC] TCPCT part1e: initial ..., =?ISO-8859-15?Q?Ilpo ..., (Tue Nov 10, 7:00 am)
Re: [net-next-2.6 PATCH v5 5/5 RFC] TCPCT part1e: initial ..., =?ISO-8859-15?Q?Ilpo ..., (Tue Nov 10, 7:30 am)
Re: [net-next-2.6 PATCH v5 3/5 RFC] TCPCT part1c: sysctl_t ..., William Allen Simpson, (Tue Nov 10, 7:43 am)
Re: [net-next-2.6 PATCH v5 5/5 RFC] TCPCT part1e: initial ..., William Allen Simpson, (Tue Nov 10, 8:45 am)
Re: [net-next-2.6 PATCH v5 5/5 RFC] TCPCT part1e: initial ..., William Allen Simpson, (Tue Nov 10, 9:49 am)
Re: [net-next-2.6 PATCH v5 5/5 RFC] TCPCT part1e: initial ..., =?ISO-8859-15?Q?Ilpo ..., (Tue Nov 10, 6:32 pm)
Re: [net-next-2.6 PATCH v5 5/5 RFC] TCPCT part1e: initial ..., =?ISO-8859-15?Q?Ilpo ..., (Tue Nov 10, 6:48 pm)
Re: [net-next-2.6 PATCH v5 5/5 RFC] TCPCT part1e: initial ..., William Allen Simpson, (Wed Nov 11, 10:35 am)