[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190320020657.31423-1-maowenan@huawei.com>
Date: Wed, 20 Mar 2019 10:06:57 +0800
From: Mao Wenan <maowenan@...wei.com>
To: <davem@...emloft.net>, <bridge@...ts.linux-foundation.org>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<kernel-janitors@...r.kernel.org>, <nikolay@...ulusnetworks.com>,
<roopa@...ulusnetworks.com>
Subject: [PATCH net-next] net: bridge: use eth_broadcast_addr() to assign broadcast address
This patch is to use eth_broadcast_addr() to assign broadcast address
insetad of memset().
Signed-off-by: Mao Wenan <maowenan@...wei.com>
---
net/bridge/br_multicast.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
index a0e369179f6d..b257342c0860 100644
--- a/net/bridge/br_multicast.c
+++ b/net/bridge/br_multicast.c
@@ -517,7 +517,7 @@ struct net_bridge_port_group *br_multicast_new_port_group(
if (src)
memcpy(p->eth_addr, src, ETH_ALEN);
else
- memset(p->eth_addr, 0xff, ETH_ALEN);
+ eth_broadcast_addr(p->eth_addr);
return p;
}
--
2.20.1
Powered by blists - more mailing lists