From: Veaceslav Falico Date: Fri, 27 Sep 2013 14:11:59 +0000 (+0200) Subject: bonding: make ad_port_selection_logic() use bond_for_each_slave() X-Git-Tag: v3.13-rc1~105^2~287 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e36bb75ce32d0c14a736ca48480fe964491c7fc;p=pandora-kernel.git bonding: make ad_port_selection_logic() use bond_for_each_slave() Currently, ad_port_selection_logic() uses for (aggregator = __get_first_agg(port); aggregator; aggregator = __get_next_agg(aggregator)) { construct, however it's suboptimal, difficult to read and understand. Change it to a standard bond_for_each_slave(), so that we won't need __get_first/next_agg() and have it more readable. CC: Jay Vosburgh CC: Andy Gospodarek Signed-off-by: Veaceslav Falico Signed-off-by: David S. Miller --- Reading git-diff-tree failed