aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
authorJasper Spaans <spaans@fox-it.com>2009-10-23 00:09:24 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-27 04:05:13 -0400
commita361c83cb4d7c8fe013d82a2f124175a7f276f30 (patch)
tree685e6e1374bf8bca7bb742c025c13cedadfb537e /drivers/net/bonding/bond_main.c
parentcfadf853f6cd9689f79a63ca960c6f9d6665314f (diff)
bonding: Remove bond_dev from xmit_hash_policy call.
Now that the bonding device is no longer used in determining the device to which to send packets, it can be dropped from the argument list of the various xmit_hash_policy calls. Signed-off-by: Jasper Spaans <spaans@fox-it.com> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Jay Vosburgh <fubar@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 3adbeed2c05..8c5ebfb0680 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -3696,8 +3696,7 @@ void bond_unregister_arp(struct bonding *bond)
3696 * Hash for the output device based upon layer 2 and layer 3 data. If 3696 * Hash for the output device based upon layer 2 and layer 3 data. If
3697 * the packet is not IP mimic bond_xmit_hash_policy_l2() 3697 * the packet is not IP mimic bond_xmit_hash_policy_l2()
3698 */ 3698 */
3699static int bond_xmit_hash_policy_l23(struct sk_buff *skb, 3699static int bond_xmit_hash_policy_l23(struct sk_buff *skb, int count)
3700 struct net_device *bond_dev, int count)
3701{ 3700{
3702 struct ethhdr *data = (struct ethhdr *)skb->data; 3701 struct ethhdr *data = (struct ethhdr *)skb->data;
3703 struct iphdr *iph = ip_hdr(skb); 3702 struct iphdr *iph = ip_hdr(skb);
@@ -3715,8 +3714,7 @@ static int bond_xmit_hash_policy_l23(struct sk_buff *skb,
3715 * the packet is a frag or not TCP or UDP, just use layer 3 data. If it is 3714 * the packet is a frag or not TCP or UDP, just use layer 3 data. If it is
3716 * altogether not IP, mimic bond_xmit_hash_policy_l2() 3715 * altogether not IP, mimic bond_xmit_hash_policy_l2()
3717 */ 3716 */
3718static int bond_xmit_hash_policy_l34(struct sk_buff *skb, 3717static int bond_xmit_hash_policy_l34(struct sk_buff *skb, int count)
3719 struct net_device *bond_dev, int count)
3720{ 3718{
3721 struct ethhdr *data = (struct ethhdr *)skb->data; 3719 struct ethhdr *data = (struct ethhdr *)skb->data;
3722 struct iphdr *iph = ip_hdr(skb); 3720 struct iphdr *iph = ip_hdr(skb);
@@ -3740,8 +3738,7 @@ static int bond_xmit_hash_policy_l34(struct sk_buff *skb,
3740/* 3738/*
3741 * Hash for the output device based upon layer 2 data 3739 * Hash for the output device based upon layer 2 data
3742 */ 3740 */
3743static int bond_xmit_hash_policy_l2(struct sk_buff *skb, 3741static int bond_xmit_hash_policy_l2(struct sk_buff *skb, int count)
3744 struct net_device *bond_dev, int count)
3745{ 3742{
3746 struct ethhdr *data = (struct ethhdr *)skb->data; 3743 struct ethhdr *data = (struct ethhdr *)skb->data;
3747 3744
@@ -4334,7 +4331,7 @@ static int bond_xmit_xor(struct sk_buff *skb, struct net_device *bond_dev)
4334 if (!BOND_IS_OK(bond)) 4331 if (!BOND_IS_OK(bond))
4335 goto out; 4332 goto out;
4336 4333
4337 slave_no = bond->xmit_hash_policy(skb, bond_dev, bond->slave_cnt); 4334 slave_no = bond->xmit_hash_policy(skb, bond->slave_cnt);
4338 4335
4339 bond_for_each_slave(bond, slave, i) { 4336 bond_for_each_slave(bond, slave, i) {
4340 slave_no--; 4337 slave_no--;