netmap: restore commit a56e6334d1
The fix ina56e6334d1
was accidentally reverted by commit45c67e8f6b
.
This commit is contained in:
parent
37c3241a43
commit
9bad2638cc
@ -995,7 +995,8 @@ nm_close(struct nm_desc *d)
|
||||
static int
|
||||
nm_mmap(struct nm_desc *d, const struct nm_desc *parent)
|
||||
{
|
||||
//XXX TODO: check if mmap is already done
|
||||
if (d->done_mmap)
|
||||
return 0;
|
||||
|
||||
if (IS_NETMAP_DESC(parent) && parent->mem &&
|
||||
parent->req.nr_arg2 == d->req.nr_arg2) {
|
||||
|
Loading…
Reference in New Issue
Block a user