summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1999-04-06 22:56:21 +0000
committerBill Paul <wpaul@FreeBSD.org>1999-04-06 22:56:21 +0000
commit2075407db296eaaf393d0b75a122d243c1cadef0 (patch)
tree24ef7b7c2ad1ab11fc499128749ab180d4741042
parentbbca5c9c2cf7fcf7a2ef6554b3ab45cb8af8ef16 (diff)
Notes
-rw-r--r--sys/dev/ti/if_ti.c9
-rw-r--r--sys/pci/if_ti.c9
2 files changed, 6 insertions, 12 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c
index 33900df57aba..befff6f50fa8 100644
--- a/sys/dev/ti/if_ti.c
+++ b/sys/dev/ti/if_ti.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_ti.c,v 1.106 1999/04/06 15:55:01 wpaul Exp $
+ * $Id: if_ti.c,v 1.1 1999/04/06 17:08:29 wpaul Exp $
*/
/*
@@ -128,7 +128,7 @@
#if !defined(lint)
static const char rcsid[] =
- "$Id: if_ti.c,v 1.106 1999/04/06 15:55:01 wpaul Exp $";
+ "$Id: if_ti.c,v 1.1 1999/04/06 17:08:29 wpaul Exp $";
#endif
/*
@@ -1756,7 +1756,6 @@ fail:
* 2) the frame is from the jumbo recieve ring
* 3) the frame is from the standard receive ring
*/
-int ti_cksumok = 0;
static void ti_rxeof(sc)
struct ti_softc *sc;
@@ -1855,10 +1854,8 @@ static void ti_rxeof(sc)
#ifdef TI_CSUM_OFFLOAD
ip = mtod(m, struct ip *);
if (!(cur_rx->ti_tcp_udp_cksum ^ 0xFFFF) &&
- !(ip->ip_off & htons(IP_MF | IP_OFFMASK | IP_RF))) {
+ !(ip->ip_off & htons(IP_MF | IP_OFFMASK | IP_RF)))
m->m_flags |= M_HWCKSUM;
- ti_cksumok++;
- }
#endif
#if NVLAN > 0
diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c
index 33900df57aba..befff6f50fa8 100644
--- a/sys/pci/if_ti.c
+++ b/sys/pci/if_ti.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_ti.c,v 1.106 1999/04/06 15:55:01 wpaul Exp $
+ * $Id: if_ti.c,v 1.1 1999/04/06 17:08:29 wpaul Exp $
*/
/*
@@ -128,7 +128,7 @@
#if !defined(lint)
static const char rcsid[] =
- "$Id: if_ti.c,v 1.106 1999/04/06 15:55:01 wpaul Exp $";
+ "$Id: if_ti.c,v 1.1 1999/04/06 17:08:29 wpaul Exp $";
#endif
/*
@@ -1756,7 +1756,6 @@ fail:
* 2) the frame is from the jumbo recieve ring
* 3) the frame is from the standard receive ring
*/
-int ti_cksumok = 0;
static void ti_rxeof(sc)
struct ti_softc *sc;
@@ -1855,10 +1854,8 @@ static void ti_rxeof(sc)
#ifdef TI_CSUM_OFFLOAD
ip = mtod(m, struct ip *);
if (!(cur_rx->ti_tcp_udp_cksum ^ 0xFFFF) &&
- !(ip->ip_off & htons(IP_MF | IP_OFFMASK | IP_RF))) {
+ !(ip->ip_off & htons(IP_MF | IP_OFFMASK | IP_RF)))
m->m_flags |= M_HWCKSUM;
- ti_cksumok++;
- }
#endif
#if NVLAN > 0