Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105795659
D3419.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
715 B
Referenced Files
None
Subscribers
None
D3419.diff
View Options
Index: sys/net/if_loop.c
===================================================================
--- sys/net/if_loop.c
+++ sys/net/if_loop.c
@@ -132,6 +132,7 @@
.ifat_drv = &lo_ifdrv,
.ifat_dunit = unit,
.ifat_mtu = LOMTU,
+ .ifat_nrings = 1,
.ifat_flags = IFF_LOOPBACK | IFF_MULTICAST,
.ifat_capabilities = IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6,
.ifat_capenable = IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6,
@@ -206,12 +207,16 @@
{
u_int32_t af;
struct rtentry *rt = NULL;
+ ifring_t *ifrs;
#ifdef MAC
int error;
#endif
M_ASSERTPKTHDR(m); /* check if we have the packet header */
+ ifrs = if_getsoftc(ifp, IF_RING);
+ m->m_pkthdr.ifring = ifrs[0];
+
if (ro != NULL)
rt = ro->ro_rt;
#ifdef MAC
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 7:44 PM (19 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15545804
Default Alt Text
D3419.diff (715 B)
Attached To
Mode
D3419: Convert lo(4) to use the per-ring counters
Attached
Detach File
Event Timeline
Log In to Comment