]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
bonding:delete agg_select_mode from ad_bond_info
authorPeter Pan(潘卫平) <panweiping3@gmail.com>
Wed, 8 Jun 2011 21:19:03 +0000 (21:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2011 22:02:19 +0000 (15:02 -0700)
bond_params->ad_select and ad_bond_info->agg_select_mode have the same
meaning, they are duplicate and need extra synchronization.

__get_agg_selection_mode() get ad_select from bond_params directly.

Signed-off-by: Weiping Pan <panweiping3@gmail.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_3ad.h

index 013a8018daf133ad3b971690b7b65bf9a19bda24..6122725fc7c26bae142a3c6f288540a1ea854883 100644 (file)
@@ -262,7 +262,7 @@ static inline u32 __get_agg_selection_mode(struct port *port)
        if (bond == NULL)
                return BOND_AD_STABLE;
 
-       return BOND_AD_INFO(bond).agg_select_mode;
+       return bond->params.ad_select;
 }
 
 /**
@@ -1859,7 +1859,6 @@ static void ad_marker_response_received(struct bond_marker *marker,
 void bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout)
 {
        BOND_AD_INFO(bond).agg_select_timer = timeout;
-       BOND_AD_INFO(bond).agg_select_mode = bond->params.ad_select;
 }
 
 static u16 aggregator_identifier;
index 97827857bf4da96d15aa35dc6394409d3f593f8e..1682e691bbe31d9c33bbbe5d12cabb58dbc51e12 100644 (file)
@@ -253,7 +253,6 @@ struct ad_system {
 struct ad_bond_info {
        struct ad_system system;            /* 802.3ad system structure */
        u32 agg_select_timer;       // Timer to select aggregator after all adapter's hand shakes
-       u32 agg_select_mode;        // Mode of selection of active aggregator(bandwidth/count)
        struct timer_list ad_timer;
 };