Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/ixgbe Use dmat64 if available. Same as ixgbe.c r...
details: https://anonhg.NetBSD.org/src/rev/e8fe64bebdb5
branches: trunk
changeset: 821492:e8fe64bebdb5
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Feb 08 04:24:44 2017 +0000
description:
Use dmat64 if available. Same as ixgbe.c rev. 1.60.
diffstat:
sys/dev/pci/ixgbe/ixv.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 03bb98b0410d -r e8fe64bebdb5 sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c Wed Feb 08 04:20:29 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c Wed Feb 08 04:24:44 2017 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index