lkml.org 
[lkml]   [2012]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [patch v4, kernel version 3.2.1] Source mode for macvlan interface
From
From: Stefan Gula <steweg@ynet.sk>
Date: Wed, 25 Jan 2012 09:48:54 +0100 (CET)

> + if (vlan->mode == MACVLAN_MODE_SOURCE &&
> + vlan->mode != nla_get_u32(data[IFLA_MACVLAN_MODE]))
...
> + if (data && data[IFLA_MACVLAN_MACADDR_MODE] &&
> + data[IFLA_MACVLAN_MACADDR]) {
...
> + return macvlan_hash_add_sources(vlan,
> + nla_data(data[IFLA_MACVLAN_MACADDR]));
...
> + hlist_for_each_entry_rcu(list, n,
> + &vlan->port->vlan_source_hash[i], hlist) {
...
> + 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.


\
 
 \ /
  Last update: 2012-01-26 03:41    [W:0.041 / U:10.988 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site