History

Merge branch 'netdev-docs'

Jakub Kicinski says: ==================== docs: netdev: document more of our rules The patch series length limit and reverse xmas tree are not documented. Add those, and a tl;dr section summarizing how we differ. v2: improve the series length blurb (Andrew) ====================

David S. Miller committed 4 years ago

Commit ea1c3b72 parents 280e3a8 5d407ca1 file · +36 −0Browse files

Unified · Split

Documentation/process/maintainer-netdev.rst+36−0
@@ -6,6 +6,15 @@ · 5 unmodified lines
6netdev FAQ6netdev FAQ
7==========7==========
8 8
9tl;dr
10-----
11
12 - designate your patch to a tree - ``[PATCH net]`` or ``[PATCH net-next]``
13 - for fixes the ``Fixes:`` tag is required, regardless of the tree
14 - don't post large series (> 15 patches), break them up
15 - don't repost your patches within one 24h period
16 - reverse xmas tree
17
9What is netdev?18What is netdev?
10---------------19---------------
11It is a mailing list for all network-related Linux stuff. This20It is a mailing list for all network-related Linux stuff. This
@@ -136,6 +145,20 @@ it to the maintainer to figure out what is the most recent and current · 124 unmodified lines
136version that should be applied. If there is any doubt, the maintainer145version that should be applied. If there is any doubt, the maintainer
137will reply and ask what should be done.146will reply and ask what should be done.
138 147
148How do I divide my work into patches?
149-------------------------------------
150
151Put yourself in the shoes of the reviewer. Each patch is read separately
152and therefore should constitute a comprehensible step towards your stated
153goal.
154
155Avoid sending series longer than 15 patches. Larger series takes longer
156to review as reviewers will defer looking at it until they find a large
157chunk of time. A small series can be reviewed in a short time, so Maintainers
158just do it. As a result, a sequence of smaller series gets merged quicker and
159with better review coverage. Re-posting large series also increases the mailing
160list traffic.
161
139I made changes to only a few patches in a patch series should I resend only those changed?162I made changes to only a few patches in a patch series should I resend only those changed?
140------------------------------------------------------------------------------------------163------------------------------------------------------------------------------------------
141No, please resend the entire patch series and make sure you do number your164No, please resend the entire patch series and make sure you do number your
@@ -183,6 +206,19 @@ it is requested that you make it look like this:: · 41 unmodified lines
183 * another line of text206 * another line of text
184 */207 */
185 208
209What is "reverse xmas tree"?
210----------------------------
211
212Netdev has a convention for ordering local variables in functions.
213Order the variable declaration lines longest to shortest, e.g.::
214
215 struct scatterlist *sg;
216 struct sk_buff *skb;
217 int err, i;
218
219If there are dependencies between the variables preventing the ordering
220move the initialization out of line.
221
186I am working in existing code which uses non-standard formatting. Which formatting should I use?222I am working in existing code which uses non-standard formatting. Which formatting should I use?
187------------------------------------------------------------------------------------------------223------------------------------------------------------------------------------------------------
188Make your code follow the most recent guidelines, so that eventually all code224Make your code follow the most recent guidelines, so that eventually all code