FreeBSD Bugzilla – Attachment 244700 Details for
Bug 239891
net/aoe: Fix for FreeBSD 12+ (no member named 'tqh_first' in 'struct ifnethead')
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Set a valid VNET context
aoe-aoenet.c-CURVNET.patch (text/plain), 548 bytes, created by
chadf
on 2023-09-07 21:17:24 UTC
(
hide
)
Description:
Set a valid VNET context
Filename:
MIME Type:
Creator:
chadf
Created:
2023-09-07 21:17:24 UTC
Size:
548 bytes
patch
obsolete
>--- dev/aoe/aoenet.c.old 2023-09-06 16:00:09.890122000 -0700 >+++ dev/aoe/aoenet.c 2023-09-07 12:58:26.482590000 -0700 >@@ -49,6 +49,7 @@ > #include <net/if_types.h> > #include <net/if_arp.h> > #include <net/netisr.h> >+#include <net/vnet.h> > > #include <dev/aoe/aoe.h> > >@@ -311,6 +312,8 @@ > h->ah_minor = aoeminor; > h->ah_cmd = AOECMD_CFG; > >+ CURVNET_SET(vnet0); >+ > IFNET_RLOCK(); > IFNET_FOREACH(ifp) { > if (!is_aoe_netif(ifp)) >@@ -324,6 +327,8 @@ > ether_output_frame(ifp, m); > } > IFNET_RUNLOCK(); >+ >+ CURVNET_RESTORE(); > > m_freem(m0); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 239891
:
206600
|
243991
|
243992
|
244404
|
244662
| 244700