aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bce
diff options
context:
space:
mode:
authorPyun YongHyeon <yongari@FreeBSD.org>2010-10-24 21:14:01 +0000
committerPyun YongHyeon <yongari@FreeBSD.org>2010-10-24 21:14:01 +0000
commitca80e9cf3a1abc38b54e4aa4b95923cde9b9cd04 (patch)
tree38dd9b1b5915639e6df94a54c41ec18e6e63802f /sys/dev/bce
parent3227992b61688ae23903e7d14682162bedfdbeef (diff)
Notes
Diffstat (limited to 'sys/dev/bce')
-rw-r--r--sys/dev/bce/if_bce.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c
index 1272cd5f02e7..07885c3f9788 100644
--- a/sys/dev/bce/if_bce.c
+++ b/sys/dev/bce/if_bce.c
@@ -6733,6 +6733,7 @@ bce_tso_setup(struct bce_softc *sc, struct mbuf **m_head, u16 *flags)
}
/* Get the TCP header length in bytes (min 20) */
+ ip = (struct ip *)(m->m_data + sizeof(struct ether_header));
th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
tcp_hlen = (th->th_off << 2);
@@ -6745,6 +6746,7 @@ bce_tso_setup(struct bce_softc *sc, struct mbuf **m_head, u16 *flags)
}
/* IP header length and checksum will be calc'd by hardware */
+ ip = (struct ip *)(m->m_data + sizeof(struct ether_header));
ip_len = ip->ip_len;
ip->ip_len = 0;
ip->ip_sum = 0;