Thread (4 messages) flat view 4 messages, 2 authors, 2012-01-26

Re: [patch v4, kernel version 3.2.1] Source mode for macvlan interface

From: Štefan Gula <hidden>
Date: 2012-01-26 11:05:12
Also in: lkml

2012/1/26 David Miller [off-list ref]:
From: Stefan Gula <redacted>
Date: Wed, 25 Jan 2012 09:48:54 +0100 (CET)
quoted
+             if (vlan->mode == MACVLAN_MODE_SOURCE &&
+                     vlan->mode != nla_get_u32(data[IFLA_MACVLAN_MODE]))
 ...
quoted
+     if (data && data[IFLA_MACVLAN_MACADDR_MODE] &&
+             data[IFLA_MACVLAN_MACADDR]) {
 ...
quoted
+                             return macvlan_hash_add_sources(vlan,
+                                     nla_data(data[IFLA_MACVLAN_MACADDR]));
 ...
quoted
+                     hlist_for_each_entry_rcu(list, n,
+                             &vlan->port->vlan_source_hash[i], hlist) {
 ...
quoted
+                     hlist_for_each_entry_rcu(list, n,
+                             &vlan->port->vlan_source_hash[i], hlist) {
Line things up on subsequent lines to the column right after the
openning parenthesis on the previous line.

If things are indented too deeply, you need to write helper functions.
Just to be sure, how many "\t" symbols are ok in patches? I want to
avoid similar thing in future.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help