1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

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)
This commit is contained in:
Xin LI 2009-08-19 17:59:41 +00:00
parent eb0ea23e83
commit 1886a6912d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196386
2 changed files with 4 additions and 2 deletions

View File

@ -1204,7 +1204,8 @@ em_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
em_init_locked(adapter); em_init_locked(adapter);
EM_CORE_UNLOCK(adapter); EM_CORE_UNLOCK(adapter);
} }
arp_ifinit(ifp, ifa); if (!(ifp->if_flags & IFF_NOARP))
arp_ifinit(ifp, ifa);
} else } else
#endif #endif
error = ether_ioctl(ifp, command, data); error = ether_ioctl(ifp, command, data);

View File

@ -952,7 +952,8 @@ igb_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
igb_init_locked(adapter); igb_init_locked(adapter);
IGB_CORE_UNLOCK(adapter); IGB_CORE_UNLOCK(adapter);
} }
arp_ifinit(ifp, ifa); if (!(ifp->if_flags & IFF_NOARP))
arp_ifinit(ifp, ifa);
} else } else
#endif #endif
error = ether_ioctl(ifp, command, data); error = ether_ioctl(ifp, command, data);