X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/f73cc8620098243df5c87cad36c5b0109372eb80..b56e8196ddfdb1f6e5d0204b93e2be28fb17a7a3:/sys/dev/netif/igb/if_igb.h diff --git a/sys/dev/netif/igb/if_igb.h b/sys/dev/netif/igb/if_igb.h index 80358d8de5..792a413657 100644 --- a/sys/dev/netif/igb/if_igb.h +++ b/sys/dev/netif/igb/if_igb.h @@ -87,7 +87,7 @@ * (num_tx_desc * sizeof(struct e1000_tx_desc)) % 128 == 0 */ #define IGB_MIN_RXD 256 -#define IGB_DEFAULT_RXD 1024 +#define IGB_DEFAULT_RXD 512 #define IGB_MAX_RXD 4096 /* @@ -215,10 +215,6 @@ struct igb_tx_ring { struct lwkt_serialize tx_serialize; struct igb_softc *sc; uint32_t me; - struct igb_dma txdma; - bus_dma_tag_t tx_hdr_dtag; - bus_dmamap_t tx_hdr_dmap; - bus_addr_t tx_hdr_paddr; struct e1000_tx_desc *tx_base; int num_tx_desc; uint32_t next_avail_desc; @@ -232,12 +228,19 @@ struct igb_tx_ring { int oact_lo_desc; int oact_hi_desc; int intr_nsegs; + int wreg_nsegs; int tx_intr_bit; uint32_t tx_intr_mask; + /* Soft stats */ u_long no_desc_avail; u_long tx_packets; -}; + + struct igb_dma txdma; + bus_dma_tag_t tx_hdr_dtag; + bus_dmamap_t tx_hdr_dmap; + bus_addr_t tx_hdr_paddr; +} __cachealign; /* * Receive ring: one per queue @@ -246,7 +249,6 @@ struct igb_rx_ring { struct lwkt_serialize rx_serialize; struct igb_softc *sc; uint32_t me; - struct igb_dma rxdma; union e1000_adv_rx_desc *rx_base; boolean_t discard; int num_rx_desc; @@ -263,10 +265,13 @@ struct igb_rx_ring { */ struct mbuf *fmp; struct mbuf *lmp; + int rx_wreg; /* Soft stats */ u_long rx_packets; -}; + + struct igb_dma rxdma; +} __cachealign; struct igb_msix_data { struct lwkt_serialize *msix_serialize; @@ -287,7 +292,7 @@ struct igb_msix_data { u_int msix_vector; int msix_rate; char msix_rate_desc[32]; -}; +} __cachealign; struct igb_softc { struct arpcom arpcom; @@ -307,6 +312,7 @@ struct igb_softc { struct ifmedia media; struct callout timer; + int timer_cpuid; int intr_type; int intr_rid; @@ -331,6 +337,8 @@ struct igb_softc { /* Multicast array pointer */ uint8_t *mta; + int rx_npoll_off; + int tx_npoll_off; int serialize_cnt; int tx_serialize; int rx_serialize;