Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152110146
D46365.id142224.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
523 B
Referenced Files
None
Subscribers
None
D46365.id142224.diff
View Options
diff --git a/sys/dev/ena/ena_netmap.c b/sys/dev/ena/ena_netmap.c
--- a/sys/dev/ena/ena_netmap.c
+++ b/sys/dev/ena/ena_netmap.c
@@ -783,10 +783,10 @@
/* Next, retain the sockets back to the userspace */
n = nm_info->sockets_used;
while (n--) {
+ ctx->nm_i = nm_prev(ctx->nm_i, ctx->lim);
ctx->slots[ctx->nm_i].buf_idx = nm_info->socket_buf_idx[n];
ctx->slots[ctx->nm_i].flags = NS_BUF_CHANGED;
nm_info->socket_buf_idx[n] = 0;
- ctx->nm_i = nm_prev(ctx->nm_i, ctx->lim);
}
nm_info->sockets_used = 0;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 13, 7:15 PM (3 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31422815
Default Alt Text
D46365.id142224.diff (523 B)
Attached To
Mode
D46365: ena: Properly unmap last socket chain in netmap
Attached
Detach File
Event Timeline
Log In to Comment