diff options
author | jfv <jfv@FreeBSD.org> | 2010-05-19 00:03:48 +0000 |
---|---|---|
committer | jfv <jfv@FreeBSD.org> | 2010-05-19 00:03:48 +0000 |
commit | 3d5feb1c8b7add6d8265ff5278c4cd30d4b6860d (patch) | |
tree | 3af32f6d848b55a172809655c59c9b689487bf00 /sys/dev/ixgbe/ixgbe.h | |
parent | 9f658eb23af13ba6919c86f3d2376627d7fbaa4b (diff) | |
download | FreeBSD-src-3d5feb1c8b7add6d8265ff5278c4cd30d4b6860d.zip FreeBSD-src-3d5feb1c8b7add6d8265ff5278c4cd30d4b6860d.tar.gz |
A few changes:
When not defining header split do not allocate mbufs,
this can be a BIG savings in the mbuf memory pool.
Also keep seperate dma maps for the header and
payload pieces when doing header split. The basis
of this code was a patch done a while ago by
yongari, thank you :)
A number of white space changes.
MFC: in a few days
Diffstat (limited to 'sys/dev/ixgbe/ixgbe.h')
-rw-r--r-- | sys/dev/ixgbe/ixgbe.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ixgbe/ixgbe.h b/sys/dev/ixgbe/ixgbe.h index f598b8f..3fdd404 100644 --- a/sys/dev/ixgbe/ixgbe.h +++ b/sys/dev/ixgbe/ixgbe.h @@ -238,7 +238,8 @@ struct ixgbe_rx_buf { struct mbuf *m_head; struct mbuf *m_pack; struct mbuf *fmp; - bus_dmamap_t map; + bus_dmamap_t hmap; + bus_dmamap_t pmap; }; /* @@ -323,8 +324,8 @@ struct rx_ring { u32 next_to_check; char mtx_name[16]; struct ixgbe_rx_buf *rx_buffers; - bus_dma_tag_t rxtag; - bus_dmamap_t spare_map; + bus_dma_tag_t htag; + bus_dma_tag_t ptag; u32 bytes; /* Used for AIM calc */ u32 packets; |