/* This function is intended to be called from the dev->set_rx_mode function of layered software devices.  */
int dev_unicast_sync(struct net_device *to, struct net_device *from)
/* This function is intended to be called from the dev->set_rx_mode function of layered software devices.  */
int dev_unicast_sync(struct net_device *to, struct net_device *from)
{
	int err = 0;
	if (to->addr_len != from->addr_len)
		return -EINVAL;
	netif_addr_lock_bh(to);
	err = __hw_addr_sync(&to->uc, &from->uc, to->addr_len);
	if (!err)
		__dev_set_rx_mode(to);
	netif_addr_unlock_bh(to);
	return err;
}