Commit 8bf9d8ea authored by Miaohe Lin's avatar Miaohe Lin Committed by David S. Miller
Browse files

cxgb4: use eth_zero_addr() to clear mac address



Use eth_zero_addr() to clear mac address insetad of memset().

Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a3c8c7f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ struct smt_data *t4_init_smt(void)
	for (i = 0; i < s->smt_size; ++i) {
		s->smtab[i].idx = i;
		s->smtab[i].state = SMT_STATE_UNUSED;
		memset(&s->smtab[i].src_mac, 0, ETH_ALEN);
		eth_zero_addr(s->smtab[i].src_mac);
		spin_lock_init(&s->smtab[i].lock);
		s->smtab[i].refcnt = 0;
	}