Home
last modified time | relevance | path

Searched refs:arp_index (Results 1 – 2 of 2) sorted by relevance

/linux-3.4.99/drivers/infiniband/hw/nes/
Dnes_utils.c686 int arp_index; in nes_arp_table() local
690 for (arp_index = 0; (u32) arp_index < nesadapter->arp_table_size; arp_index++) { in nes_arp_table()
691 if (nesadapter->arp_table[arp_index].ip_addr == ip_addr) in nes_arp_table()
696 if (arp_index != nesadapter->arp_table_size) { in nes_arp_table()
700 arp_index = 0; in nes_arp_table()
702 nesadapter->arp_table_size, (u32 *)&arp_index, &nesadapter->next_arp_index); in nes_arp_table()
707 nes_debug(NES_DBG_NETDEV, "ADD, arp_index=%d\n", arp_index); in nes_arp_table()
709 nesadapter->arp_table[arp_index].ip_addr = ip_addr; in nes_arp_table()
710 memcpy(nesadapter->arp_table[arp_index].mac_addr, mac_addr, ETH_ALEN); in nes_arp_table()
711 return arp_index; in nes_arp_table()
[all …]
Dnes_hw.c3836 int arp_index; in nes_manage_arp_cache() local
3839 arp_index = nes_arp_table(nesdev, ip_addr, mac_addr, action); in nes_manage_arp_cache()
3840 if (arp_index == -1) { in nes_manage_arp_cache()
3858 cqp_wqe->wqe_words[NES_CQP_WQE_ID_IDX] = cpu_to_le32(arp_index); in nes_manage_arp_cache()