[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1401969663-4464-1-git-send-email-dingtianhong@huawei.com>
Date: Thu, 5 Jun 2014 20:01:00 +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 0/3] macvlan: fix some problem if mac address changes
The macvlan may return failed when handle the NETDEV_CHANGEMTU message, and
the current code could not process the error value, so modify the
dev_set_mac_address to process the return value for notification chain,
revert the old mac address if set new mac address failed.
The macvlan and lowerdev should not have the same mac address for non-passthru
mode, so add restriction for that.
v1->v2: some drivers need to call ndo_set_mac_address() even though the same
mac address, so remove the equal check and allow to set same mac address.
Ding Tianhong (3):
macvlan: don't update the uc and vlan list for L2 forwarding offload
net: dev: revert the mac address when notifier failed
macvlan: don't set the same mac address for non-passthru mode
drivers/net/macvlan.c | 8 ++++++--
net/core/dev.c | 23 +++++++++++++++++++----
2 files changed, 25 insertions(+), 6 deletions(-)
--
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