diff options
| author | Matt Macy <mmacy@FreeBSD.org> | 2018-05-18 03:38:17 +0000 |
|---|---|---|
| committer | Matt Macy <mmacy@FreeBSD.org> | 2018-05-18 03:38:17 +0000 |
| commit | cfa866f6a1ba4798cd6d877f0f0e4f45227efb9c (patch) | |
| tree | d793e909a5dea6aaec9de7983ff6b8af700521ec /sys/dev/netmap/netmap_pt.c | |
| parent | 649d7b463a9e41c30dd3b6ec0966bf08b3c49630 (diff) | |
Notes
Diffstat (limited to 'sys/dev/netmap/netmap_pt.c')
| -rw-r--r-- | sys/dev/netmap/netmap_pt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/netmap/netmap_pt.c b/sys/dev/netmap/netmap_pt.c index cfa32b0bcf5f..bf7872ff2a9a 100644 --- a/sys/dev/netmap/netmap_pt.c +++ b/sys/dev/netmap/netmap_pt.c @@ -1160,7 +1160,7 @@ int netmap_get_pt_host_na(struct nmreq_header *hdr, struct netmap_adapter **na, struct netmap_mem_d *nmd, int create) { - struct nmreq_register *req = (struct nmreq_register *)hdr->nr_body; + struct nmreq_register *req = (struct nmreq_register *)(uintptr_t)hdr->nr_body; struct nmreq_register preq; struct netmap_adapter *parent; /* target adapter */ struct netmap_pt_host_adapter *pth_na; @@ -1186,9 +1186,9 @@ netmap_get_pt_host_na(struct nmreq_header *hdr, struct netmap_adapter **na, */ memcpy(&preq, req, sizeof(preq)); preq.nr_flags &= ~(NR_PTNETMAP_HOST); - hdr->nr_body = (uint64_t)&preq; + hdr->nr_body = (uintptr_t)&preq; error = netmap_get_na(hdr, &parent, &ifp, nmd, create); - hdr->nr_body = (uint64_t)req; + hdr->nr_body = (uintptr_t)req; if (error) { D("parent lookup failed: %d", error); goto put_out_noputparent; |
