diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-04-19 12:39:32 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-04-19 12:39:32 +0000 |
commit | 02487e6d12461ba9dc1a743d1fcc2ee19263715a (patch) | |
tree | 925cd5bfaf37332bf350e60d0e5789f97d8b9581 /sys/dev/pv/if_xnf.c | |
parent | 7843b916faa6070f2eb5cbd2c594b56c1e94055d (diff) |
Remove the ds_offset hack since object offset within a page
is the same for both virtual and physical addresses.
Diffstat (limited to 'sys/dev/pv/if_xnf.c')
-rw-r--r-- | sys/dev/pv/if_xnf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/if_xnf.c b/sys/dev/pv/if_xnf.c index d17166b55de..4f23c6fe616 100644 --- a/sys/dev/pv/if_xnf.c +++ b/sys/dev/pv/if_xnf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_xnf.c,v 1.18 2016/04/13 11:36:00 mpi Exp $ */ +/* $OpenBSD: if_xnf.c,v 1.19 2016/04/19 12:39:31 mikeb Exp $ */ /* * Copyright (c) 2015, 2016 Mike Belopuhov @@ -567,7 +567,7 @@ xnf_encap(struct xnf_softc *sc, struct mbuf *m_head, uint32_t *prod) txd->txd_req.txq_flags |= XNF_TXF_CHUNK; txd->txd_req.txq_ref = dmap->dm_segs[0].ds_addr; - txd->txd_req.txq_offset = dmap->dm_segs[0].ds_offset; + txd->txd_req.txq_offset = mtod(m, vaddr_t) & PAGE_MASK; sc->sc_tx_buf[i] = m; (*prod)++; } |