Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/arch/i386/i386 Pull up revision 1.25 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/ada14691aec2
branches:  netbsd-1-5
changeset: 491024:ada14691aec2
user:      he <he%NetBSD.org@localhost>
date:      Fri Mar 30 22:29:23 2001 +0000

description:
Pull up revision 1.25 (requested by fvdl):
  Use optimized i386 assembly version for in4_cksum as well as the
  older in_cksum.  Gets back the 10-15% throughput loss compared
  to the NetBSD 1.4 branch.

diffstat:

 sys/arch/i386/i386/genassym.cf |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r dc51628e141c -r ada14691aec2 sys/arch/i386/i386/genassym.cf
--- a/sys/arch/i386/i386/genassym.cf    Fri Mar 30 22:29:06 2001 +0000
+++ b/sys/arch/i386/i386/genassym.cf    Fri Mar 30 22:29:23 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: genassym.cf,v 1.19.4.1 2000/08/16 23:18:21 thorpej Exp $
+#      $NetBSD: genassym.cf,v 1.19.4.2 2001/03/30 22:29:23 he Exp $
 
 #
 # Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -84,6 +84,10 @@
 include <sys/device.h>
 include <sys/user.h>
 include <sys/mbuf.h>
+include <netinet/in.h>
+include <netinet/in_systm.h>
+include <netinet/ip.h>
+include <netinet/ip_var.h>
 
 include <vm/vm.h>
 
@@ -146,6 +150,9 @@
 define M_LEN                   offsetof(struct mbuf, m_len)
 define M_NEXT                  offsetof(struct mbuf, m_next)
 
+define IP_SRC                  offsetof(struct ip, ip_src)
+define IP_DST                  offsetof(struct ip, ip_dst)
+
 define V_TRAP                  offsetof(struct uvmexp, traps)
 define V_INTR                  offsetof(struct uvmexp, intrs)
 



Home | Main Index | Thread Index | Old Index