[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A68439F.8060305@trash.net>
Date: Thu, 23 Jul 2009 13:03:59 +0200
From: Patrick McHardy <kaber@...sh.net>
To: Jay Vosburgh <fubar@...ibm.com>
CC: Or Gerlitz <ogerlitz@...taire.com>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH net-next-2.6] bonding: propogate vlan_features to bonding
master
Jay Vosburgh wrote:
> Propogate the vlan_features of the slave devices to the bonding
> master device, using the same logic as for regular features.
>
> Tested by Or Gerlitz <ogerlitz@...taire.com>, who also removed
> the debug logic from the original test patch.
>
> diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
> index 3bf0cc6..5a8b882 100644
> --- a/drivers/net/bonding/bond_main.c
> +++ b/drivers/net/bonding/bond_main.c
> @@ -1354,6 +1359,7 @@ static int bond_compute_features(struct bonding *bond)
> done:
> features |= (bond_dev->features & BOND_VLAN_FEATURES);
> bond_dev->features = netdev_fix_features(features, NULL);
> + bond_dev->vlan_features = netdev_fix_features(vlan_features, NULL);
You need to call netdev_features_change() to make sure the VLAN
code notices the change.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists