Temporarily force IFF_NEEDSEPOCH until drivers have been resolved.

Recent network epoch changes have left some drivers unexpectedly broken
and there is not yet a consensus on the correct fix.  This is patch is
a minor performance impact until we can agree on the correct path
forward.

Reviewed by:	core, network, imp, glebius, hselasky
Differential Revision:	https://reviews.freebsd.org/D23515
This commit is contained in:
Jeff Roberson 2020-02-06 20:47:50 +00:00
parent c10aea724f
commit cd0be8b2ed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357640

View File

@ -546,6 +546,8 @@ if_alloc_domain(u_char type, int numa_domain)
#ifdef VIMAGE
ifp->if_vnet = curvnet;
#endif
/* XXX */
ifp->if_flags |= IFF_NEEDSEPOCH;
if (if_com_alloc[type] != NULL) {
ifp->if_l2com = if_com_alloc[type](type, ifp);
if (ifp->if_l2com == NULL) {
@ -4152,7 +4154,8 @@ if_setdrvflags(if_t ifp, int flags)
int
if_setflags(if_t ifp, int flags)
{
((struct ifnet *)ifp)->if_flags = flags;
/* XXX Temporary */
((struct ifnet *)ifp)->if_flags = flags | IFF_NEEDSEPOCH;
return (0);
}