Date: Fri, 2 Mar 2012 10:28:22 -0800 From: Vijay Singh <vijju.singh@gmail.com> To: net@freebsd.org Subject: Patch to restore vnet at a couple of places Message-ID: <CALCNsJSOpmGKtN5yJiLuCMpVz8z%2Bt8EV=j%2BMUtyR4t-cRRTJ6g@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Patch is against 9-stable.
[pc20 /u/vijay/bsd/CODE/9s/sys]# svn diff net/if_ethersubr.c
Index: net/if_ethersubr.c
===================================================================
--- net/if_ethersubr.c (revision 232242)
+++ net/if_ethersubr.c (working copy)
@@ -661,8 +661,10 @@
m = (*lagg_input_p)(ifp, m);
if (m != NULL)
ifp = m->m_pkthdr.rcvif;
- else
+ else {
+ CURVNET_RESTORE();
return;
+ }
}
/*
@@ -681,6 +683,7 @@
#endif
ifp->if_ierrors++;
m_freem(m);
+ CURVNET_RESTORE();
return;
}
-vijay
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALCNsJSOpmGKtN5yJiLuCMpVz8z%2Bt8EV=j%2BMUtyR4t-cRRTJ6g>
