aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/netmap_monitor.c
diff options
context:
space:
mode:
authorVincenzo Maffione <vmaffione@FreeBSD.org>2021-01-24 21:59:02 +0000
committerVincenzo Maffione <vmaffione@FreeBSD.org>2021-01-31 08:53:06 +0000
commite4c81e46acc0dc34fa6a680ad06f9b003675f86d (patch)
treef3d90313bd94bdf68d194d8042f677beb02e5550 /sys/dev/netmap/netmap_monitor.c
parenta8ca736bb4edb18848b6a828d946d1ddee419b56 (diff)
netmap: simplify parameter passing
Changes imported from the netmap github. (cherry picked from commit ee0005f11f2b38a714bc66b7d79832108f6fee77)
Diffstat (limited to 'sys/dev/netmap/netmap_monitor.c')
-rw-r--r--sys/dev/netmap/netmap_monitor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/netmap/netmap_monitor.c b/sys/dev/netmap/netmap_monitor.c
index f30abcc4b39a..1f5ff65b3b81 100644
--- a/sys/dev/netmap/netmap_monitor.c
+++ b/sys/dev/netmap/netmap_monitor.c
@@ -950,8 +950,7 @@ netmap_get_monitor_na(struct nmreq_header *hdr, struct netmap_adapter **na,
mna->priv.np_na = pna;
/* grab all the rings we need in the parent */
- error = netmap_interp_ringid(&mna->priv, req->nr_mode, req->nr_ringid,
- req->nr_flags);
+ error = netmap_interp_ringid(&mna->priv, hdr);
if (error) {
nm_prerr("ringid error");
goto free_out;