Use dmat64 if available. Same as ixgbe.c rev. 1.60.
This commit is contained in:
parent
5bb96b04e2
commit
8d2035c595
@ -31,7 +31,7 @@
|
||||
|
||||
******************************************************************************/
|
||||
/*$FreeBSD: head/sys/dev/ixgbe/if_ixv.c 302384 2016-07-07 03:39:18Z sbruno $*/
|
||||
/*$NetBSD: ixv.c,v 1.42 2017/02/08 04:20:29 msaitoh Exp $*/
|
||||
/*$NetBSD: ixv.c,v 1.43 2017/02/08 04:24:44 msaitoh Exp $*/
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_inet6.h"
|
||||
@ -340,7 +340,10 @@ ixv_attach(device_t parent, device_t dev, void *aux)
|
||||
|
||||
adapter->osdep.pc = pa->pa_pc;
|
||||
adapter->osdep.tag = pa->pa_tag;
|
||||
adapter->osdep.dmat = pa->pa_dmat;
|
||||
if (pci_dma64_available(pa))
|
||||
adapter->osdep.dmat = pa->pa_dmat64;
|
||||
else
|
||||
adapter->osdep.dmat = pa->pa_dmat;
|
||||
adapter->osdep.attached = false;
|
||||
|
||||
ent = ixv_lookup(pa);
|
||||
|
Loading…
Reference in New Issue
Block a user