summaryrefslogtreecommitdiff
path: root/sys/dev/cardbus
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-01-14 15:04:53 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-01-14 15:04:53 +0000
commit879f0684cbc6d39d89800b880ef0d40d39512c54 (patch)
treee21293966a6f1d73285ff7bd3732abb01895d2c4 /sys/dev/cardbus
parent85f83927c10fbc481f918e8b1b06a156a60480b8 (diff)
rev 1.63
Avoid an unnecessary copy of a packet if it is already in a single mbuf. Introduce an additional device flag for those NICs which require the transmit buffers to be aligned to 32-bit boundaries. From FreeBSD
Diffstat (limited to 'sys/dev/cardbus')
-rw-r--r--sys/dev/cardbus/if_dc_cardbus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/cardbus/if_dc_cardbus.c b/sys/dev/cardbus/if_dc_cardbus.c
index d21ea5e132e..3c2f10f0692 100644
--- a/sys/dev/cardbus/if_dc_cardbus.c
+++ b/sys/dev/cardbus/if_dc_cardbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_dc_cardbus.c,v 1.15 2004/10/07 21:16:59 brad Exp $ */
+/* $OpenBSD: if_dc_cardbus.c,v 1.16 2005/01/14 15:04:52 brad Exp $ */
#include <sys/param.h>
#include <sys/systm.h>
@@ -145,7 +145,8 @@ dc_cardbus_attach(parent, self, aux)
if (PCI_PRODUCT(ca->ca_id) ==
PCI_PRODUCT_XIRCOM_X3201_3_21143) {
sc->dc_type = DC_TYPE_XIRCOM;
- sc->dc_flags |= DC_TX_INTR_ALWAYS|DC_TX_COALESCE;
+ sc->dc_flags |= DC_TX_INTR_ALWAYS|DC_TX_COALESCE |
+ DC_TX_ALIGN;
sc->dc_pmode = DC_PMODE_MII;
bcopy(ca->ca_cis.funce.network.netid,