>From 964cbe4596d002871fa0dea7526536769bef4b69 Mon Sep 17 00:00:00 2001 From: Vlad Yasevich Date: Wed, 13 Nov 2013 13:18:59 -0500 Subject: [PATCH] core: Propagate rx_flags changes to slave|master devices even if down. If the device is a master or slave device, propagate rx_flag changes to them even if they are down. This makes sure that when complex stacked configuration are set up, the flags are properly set on all devices. Signed-off-by: Vlad Yasevich --- net/core/dev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index fc913f4..016857b 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -4525,7 +4525,9 @@ static void dev_change_rx_flags(struct net_device *dev, int flags) { const struct net_device_ops *ops = dev->netdev_ops; - if ((dev->flags & IFF_UP) && ops->ndo_change_rx_flags) + if (((dev->flags & IFF_UP) || + (dev->flags & (IFF_MASTER | IFF_SLAVE))) + && ops->ndo_change_rx_flags) ops->ndo_change_rx_flags(dev, flags); } -- 1.8.4.2