#endif
sc->tx_ring_inuse = sc->tx_ring_cnt;
- if (sc->hw.mac.type == e1000_82575)
- sc->flags |= IGB_FLAG_TSO_IPLEN0;
-
/* Enable bus mastering */
pci_enable_busmaster(dev);
}
}
+ if (txr->sc->hw.mac.type == e1000_82575)
+ txr->tx_flags |= IGB_TXFLAG_TSO_IPLEN0;
+
/*
* Initialize various watermark
*/
}
*mp = m;
}
- if (txr->sc->flags & IGB_FLAG_TSO_IPLEN0) {
+ if (txr->tx_flags & IGB_TXFLAG_TSO_IPLEN0) {
struct ip *ip;
ip = mtodoff(m, struct ip *, hoff);
struct igb_softc *sc;
struct ifaltq_subque *ifsq;
uint32_t me;
+ uint32_t tx_flags;
+#define IGB_TXFLAG_TSO_IPLEN0 0x1
struct e1000_tx_desc *tx_base;
int num_tx_desc;
uint32_t next_avail_desc;
uint32_t flags;
#define IGB_FLAG_SHARED_INTR 0x1
#define IGB_FLAG_HAS_MGMT 0x2
-#define IGB_FLAG_TSO_IPLEN0 0x4
bus_dma_tag_t parent_tag;