From: Veaceslav Falico <vfalico@gmail.com>
To: Jiri Pirko <jiri@resnulli.us>
Cc: netdev@vger.kernel.org, davem@davemloft.net,
j.vosburgh@gmail.com, andy@greyhouse.net
Subject: Re: [patch net-next] bonding: allow to add vlans on top of empty bond
Date: Sat, 28 Jun 2014 09:30:15 +0200 [thread overview]
Message-ID: <20140628073015.GA16141@mikrodark.usersys.redhat.com> (raw)
In-Reply-To: <1403878392-10004-1-git-send-email-jiri@resnulli.us>
On Fri, Jun 27, 2014 at 04:13:12PM +0200, Jiri Pirko wrote:
>This limitation maybe had some reason in the past, but now there is not
>one -> removing this.
Yeah, purely legacy stuff.
>
>Signed-off-by: Jiri Pirko <jiri@resnulli.us>
For the patch:
Acked-by: Veaceslav Falico <vfalico@gmail.com>
It would be also nice if you could have time to follow up with Jay's
remarks :).
>---
> drivers/net/bonding/bond_main.c | 13 -------------
> 1 file changed, 13 deletions(-)
>
>diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
>index 3a451b6..ffefb70 100644
>--- a/drivers/net/bonding/bond_main.c
>+++ b/drivers/net/bonding/bond_main.c
>@@ -1001,12 +1001,6 @@ static netdev_features_t bond_fix_features(struct net_device *dev,
> netdev_features_t mask;
> struct slave *slave;
>
>- if (!bond_has_slaves(bond)) {
>- /* Disable adding VLANs to empty bond. But why? --mq */
>- features |= NETIF_F_VLAN_CHALLENGED;
>- return features;
>- }
>-
> mask = features;
> features &= ~NETIF_F_ONE_FOR_ALL;
> features |= NETIF_F_ALL_FOR_ALL;
>@@ -3956,13 +3950,6 @@ void bond_setup(struct net_device *bond_dev)
> bond_dev->priv_flags |= IFF_BONDING | IFF_UNICAST_FLT;
> bond_dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING);
>
>- /* At first, we block adding VLANs. That's the only way to
>- * prevent problems that occur when adding VLANs over an
>- * empty bond. The block will be removed once non-challenged
>- * slaves are enslaved.
>- */
>- bond_dev->features |= NETIF_F_VLAN_CHALLENGED;
>-
> /* don't acquire bond device's netif_tx_lock when
> * transmitting */
> bond_dev->features |= NETIF_F_LLTX;
>--
>1.9.0
>
next prev parent reply other threads:[~2014-06-28 7:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-27 14:13 [patch net-next] bonding: allow to add vlans on top of empty bond Jiri Pirko
2014-06-27 15:27 ` Tom Gundersen
2014-06-27 16:08 ` Jay Vosburgh
2014-07-02 8:46 ` Jiri Pirko
2014-07-02 9:05 ` Michal Kubecek
2014-07-02 9:13 ` Jiri Pirko
2014-06-28 7:30 ` Veaceslav Falico [this message]
2014-06-28 7:49 ` Jiri Pirko
2014-07-02 1:58 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140628073015.GA16141@mikrodark.usersys.redhat.com \
--to=vfalico@gmail.com \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=j.vosburgh@gmail.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).