Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Xu Wang and committed by
David S. Miller
74b5afea 202a5d5a

+1 -1
+1 -1
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c
··· 1724 1724 u8 port_num, u8 *mask, u8 *addr) 1725 1725 { 1726 1726 if (MAC_IS_BROADCAST(addr)) 1727 - memset(mask, 0xff, ETH_ALEN); 1727 + eth_broadcast_addr(mask); 1728 1728 else 1729 1729 memcpy(mask, dsaf_dev->mac_cb[port_num]->mc_mask, ETH_ALEN); 1730 1730 }