mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
net: hns: 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: Xu Wang <vulab@iscas.ac.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
202a5d5a7a
commit
74b5afea3b
@ -1724,7 +1724,7 @@ static void hns_dsaf_setup_mc_mask(struct dsaf_device *dsaf_dev,
|
||||
u8 port_num, u8 *mask, u8 *addr)
|
||||
{
|
||||
if (MAC_IS_BROADCAST(addr))
|
||||
memset(mask, 0xff, ETH_ALEN);
|
||||
eth_broadcast_addr(mask);
|
||||
else
|
||||
memcpy(mask, dsaf_dev->mac_cb[port_num]->mc_mask, ETH_ALEN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user