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:
parent
c10aea724f
commit
cd0be8b2ed
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user