static void set_multicast_hash_handler(struct work_struct *work) { struct zd_mac *mac = container_of(work, struct zd_mac, set_multicast_hash_work); struct zd_mc_hash hash; spin_lock_irq(&mac->lock); hash = mac->multicast_hash; spin_unlock_irq(&mac->lock); zd_chip_set_multicast_hash(&mac->chip, &hash); }
static int set_mc_hash(struct zd_mac *mac) { struct zd_mc_hash hash; zd_mc_clear(&hash); return zd_chip_set_multicast_hash(&mac->chip, &hash); }