summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_dcreg.h
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2001-12-11 02:47:53 +0000
committerluigi <luigi@FreeBSD.org>2001-12-11 02:47:53 +0000
commit41dffde8bb5add69956df30104e9689d68cd5a46 (patch)
tree23cc761de87f4050d3a67dcbeb7107879c75feb2 /sys/pci/if_dcreg.h
parentc7282b9212c327c3a40b40d948d29eaed42c3f27 (diff)
downloadFreeBSD-src-41dffde8bb5add69956df30104e9689d68cd5a46.zip
FreeBSD-src-41dffde8bb5add69956df30104e9689d68cd5a46.tar.gz
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. (the equivalen fix for STABLE is slightly simpler because there are no supported chips which require this alignment there.)
Diffstat (limited to 'sys/pci/if_dcreg.h')
-rw-r--r--sys/pci/if_dcreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_dcreg.h b/sys/pci/if_dcreg.h
index 9336728..0052d33 100644
--- a/sys/pci/if_dcreg.h
+++ b/sys/pci/if_dcreg.h
@@ -739,6 +739,7 @@ struct dc_softc {
#define DC_64BIT_HASH 0x00002000
#define DC_TULIP_LEDS 0x00004000
#define DC_TX_ONE 0x00008000
+#define DC_TX_ALIGN 0x00010000 /* align mbuf on tx */
/*
* register space access macros
OpenPOWER on IntegriCloud