[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1401969663-4464-2-git-send-email-dingtianhong@huawei.com>
Date: Thu, 5 Jun 2014 20:01:01 +0800
From: Ding Tianhong <dingtianhong@...wei.com>
To: <kaber@...sh.net>, <davem@...emloft.net>, <edumazet@...gle.com>,
<vyasevic@...hat.com>, <makita.toshiaki@....ntt.co.jp>
CC: <netdev@...r.kernel.org>
Subject: [PATCH net-next v2 1/3] macvlan: don't update the uc and vlan list for L2 forwarding offload
If lowerdev supports L2 forwarding offload, no need to set mac address
to uc list and vlan list, so also don't do that when the macvlan mac address
changes.
Signed-off-by: Ding Tianhong <dingtianhong@...wei.com>
---
drivers/net/macvlan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 453d55a..c3a54a6 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -515,7 +515,7 @@ static int macvlan_sync_address(struct net_device *dev, unsigned char *addr)
struct net_device *lowerdev = vlan->lowerdev;
int err;
- if (!(dev->flags & IFF_UP)) {
+ if (!(dev->flags & IFF_UP) || vlan->fwd_priv) {
/* Just copy in the new address */
ether_addr_copy(dev->dev_addr, addr);
} else {
--
1.8.0
--
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