diff options
| author | Luigi Rizzo <luigi@FreeBSD.org> | 2016-10-18 15:41:57 +0000 |
|---|---|---|
| committer | Luigi Rizzo <luigi@FreeBSD.org> | 2016-10-18 15:41:57 +0000 |
| commit | 6ad42d71b2c2d6afb14e8328d8bb1ba5b00919f8 (patch) | |
| tree | 40d5236306217975147879f4f9cf7fbd2cb702c8 /sys/dev/netmap/netmap_pipe.c | |
| parent | fbb9e715c022b92ee8aff08cc77077cfa3bc23fe (diff) | |
Notes
Diffstat (limited to 'sys/dev/netmap/netmap_pipe.c')
| -rw-r--r-- | sys/dev/netmap/netmap_pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/netmap/netmap_pipe.c b/sys/dev/netmap/netmap_pipe.c index f0f1b524300a1..f00f73f8b9b2a 100644 --- a/sys/dev/netmap/netmap_pipe.c +++ b/sys/dev/netmap/netmap_pipe.c @@ -92,7 +92,7 @@ nm_pipe_alloc(struct netmap_adapter *na, u_int npipes) if (npipes <= na->na_max_pipes) /* we already have more entries that requested */ return 0; - + if (npipes < na->na_next_pipe || npipes > NM_MAXPIPES) return EINVAL; @@ -402,7 +402,7 @@ netmap_pipe_reg(struct netmap_adapter *na, int onoff) } } } - + /* create all missing needed rings on the other end */ error = netmap_mem_rings_create(ona); if (error) |
