diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-01-14 15:04:53 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-01-14 15:04:53 +0000 |
commit | 879f0684cbc6d39d89800b880ef0d40d39512c54 (patch) | |
tree | e21293966a6f1d73285ff7bd3732abb01895d2c4 /sys/dev/cardbus | |
parent | 85f83927c10fbc481f918e8b1b06a156a60480b8 (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.c | 5 |
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, |