Module Name: src Committed By: msaitoh Date: Wed Feb 8 04:24:44 UTC 2017
Modified Files: src/sys/dev/pci/ixgbe: ixv.c Log Message: Use dmat64 if available. Same as ixgbe.c rev. 1.60. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/dev/pci/ixgbe/ixv.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/ixgbe/ixv.c diff -u src/sys/dev/pci/ixgbe/ixv.c:1.42 src/sys/dev/pci/ixgbe/ixv.c:1.43 --- src/sys/dev/pci/ixgbe/ixv.c:1.42 Wed Feb 8 04:20:29 2017 +++ src/sys/dev/pci/ixgbe/ixv.c Wed Feb 8 04:24:44 2017 @@ -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 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);