[ofa-general] [PATCH 5/10] nes: remove unneeded arp cache update
Glenn Grundstrom NetEffect
glenn at lists.openfabrics.org
Thu Dec 20 12:29:44 PST 2007
The hardware arp cache is updated by inet event notifiers.
Therefore, no arp cache update is needed at netdev_open.
Signed-off-by: Glenn Grundstrom <ggrundstrom at neteffect.com>
---
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
index 2ff4c41..496024a 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers/infiniband/hw/nes/nes_nic.c
@@ -260,16 +260,6 @@ static int nes_netdev_open(struct net_device *netdev)
}
- if (netdev->ip_ptr) {
- struct in_device *ip = netdev->ip_ptr;
- struct in_ifaddr *in = NULL;
- if (ip && ip->ifa_list) {
- in = ip->ifa_list;
- nes_manage_arp_cache(nesvnic->netdev, netdev->dev_addr,
- ntohl(in->ifa_address), NES_ARP_ADD);
- }
- }
-
nes_write32(nesdev->regs+NES_CQE_ALLOC, NES_CQE_ALLOC_NOTIFY_NEXT |
nesvnic->nic_cq.cq_number);
nes_read32(nesdev->regs+NES_CQE_ALLOC);
More information about the general
mailing list