}
static int
-igb_tso_pullup(struct igb_tx_ring *txr __unused, struct mbuf **mp)
+igb_tso_pullup(struct igb_tx_ring *txr, struct mbuf **mp)
{
int hoff, iphlen, thoff;
struct mbuf *m;
}
*mp = m;
}
+ if (txr->sc->flags & IGB_FLAG_TSO_IPLEN0) {
+ struct ip *ip;
+
+ ip = mtodoff(m, struct ip *, hoff);
+ ip->ip_len = 0;
+ }
+
return 0;
}
thoff = m->m_pkthdr.csum_thlen;
hoff = m->m_pkthdr.csum_lhlen;
- if (txr->sc->flags & IGB_FLAG_TSO_IPLEN0) {
- struct ip *ip;
-
- ip = mtodoff(m, struct ip *, hoff);
- ip->ip_len = 0;
- }
-
vlan_macip_lens = type_tucmd_mlhl = mss_l4len_idx = 0;
ctxd = txr->next_avail_desc;