summaryrefslogtreecommitdiffstats
path: root/sys/dev/e1000/if_igb.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-08-19 17:59:41 +0000
committerdelphij <delphij@FreeBSD.org>2009-08-19 17:59:41 +0000
commite28a844d86892621957f43e17d998f2429a4d43b (patch)
tree864097bf5ff10bdce971645abbded03141127e70 /sys/dev/e1000/if_igb.c
parent53fdefea9de99796f4f8d54520a0ac95d829b2bd (diff)
downloadFreeBSD-src-e28a844d86892621957f43e17d998f2429a4d43b.zip
FreeBSD-src-e28a844d86892621957f43e17d998f2429a4d43b.tar.gz
Temporarily enhance em(4) and igb(4) hack to take account for IFF_NOARP.
Without this changeset there will be no way to prevent these NICs from sending ARP, which is harmful in server farms that is configured as "Direct Server Return" behind a load balancer. A better fix would remove the whole hack completely but it would be later than 8.0-RELEASE. Reviewed by: jfv, yongari Approved by: re (kib)
Diffstat (limited to 'sys/dev/e1000/if_igb.c')
-rw-r--r--sys/dev/e1000/if_igb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/e1000/if_igb.c b/sys/dev/e1000/if_igb.c
index ee19b94..4124fa1 100644
--- a/sys/dev/e1000/if_igb.c
+++ b/sys/dev/e1000/if_igb.c
@@ -952,7 +952,8 @@ igb_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
igb_init_locked(adapter);
IGB_CORE_UNLOCK(adapter);
}
- arp_ifinit(ifp, ifa);
+ if (!(ifp->if_flags & IFF_NOARP))
+ arp_ifinit(ifp, ifa);
} else
#endif
error = ether_ioctl(ifp, command, data);
OpenPOWER on IntegriCloud