Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Dec 2010 18:28:53 GMT
From:      Alexandre Fiveg <afiveg@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 187106 for review
Message-ID:  <201012211828.oBLISrT9089950@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@187106?ac=10

Change 187106 by afiveg@cottonmouth on 2010/12/21 18:28:21

	The previous bug is fixed: ring->kernrp should point 
	to the next from the current checked slot in the ring.
	Ringmap is ported to 8.1-STABLE. 
	Next performance tests will be done.

Affected files ...

.. //depot/projects/soc2010/ringmap/scripts/build_ringmap.sh#38 edit
.. //depot/projects/soc2010/ringmap/scripts/set_ringmap.sh#39 edit
.. //depot/projects/soc2010/ringmap/scripts/tailf_ringmap_msgs.sh#33 edit
.. //depot/projects/soc2010/ringmap/stable_8/contrib/libpcap/ringmap_pcap.c#3 edit
.. //depot/projects/soc2010/ringmap/stable_8/lib/libpcap/Makefile#4 edit
.. //depot/projects/soc2010/ringmap/stable_8/sys/modules/ringmap/Makefile#2 edit
.. //depot/projects/soc2010/ringmap/stable_8/sys/modules/ringmap/Makefile.em#2 edit
.. //depot/projects/soc2010/ringmap/stable_8/sys/net/ringmap.c#3 edit

Differences ...

==== //depot/projects/soc2010/ringmap/scripts/build_ringmap.sh#38 (text+ko) ====


==== //depot/projects/soc2010/ringmap/scripts/set_ringmap.sh#39 (text+ko) ====


==== //depot/projects/soc2010/ringmap/scripts/tailf_ringmap_msgs.sh#33 (text+ko) ====


==== //depot/projects/soc2010/ringmap/stable_8/contrib/libpcap/ringmap_pcap.c#3 (text+ko) ====


==== //depot/projects/soc2010/ringmap/stable_8/lib/libpcap/Makefile#4 (text+ko) ====

@@ -12,7 +12,7 @@
 	scanner.l version.c
 
 .if defined(LIBPCAP_RINGMAP)
-CFLAGS+=-g -DRINGMAP -D__RINGMAP_DEB
+CFLAGS+=-g -DRINGMAP
 SRCS+=ringmap_pcap.c
 .endif 
 

==== //depot/projects/soc2010/ringmap/stable_8/sys/modules/ringmap/Makefile#2 (text+ko) ====


==== //depot/projects/soc2010/ringmap/stable_8/sys/modules/ringmap/Makefile.em#2 (text+ko) ====

@@ -15,7 +15,7 @@
 PCIE_SHARED = e1000_80003es2lan.c e1000_ich8lan.c e1000_82571.c e1000_82575.c
 LEGACY_SHARED = e1000_82540.c e1000_82542.c e1000_82541.c e1000_82543.c
 
-CFLAGS += -g -I${.CURDIR}/../../dev/e1000 -DRINGMAP
+CFLAGS += -g -I${.CURDIR}/../../dev/e1000 -DRINGMAP 
 
 # DEVICE_POLLING for a non-interrupt-driven method
 #CFLAGS  += -DDEVICE_POLLING

==== //depot/projects/soc2010/ringmap/stable_8/sys/net/ringmap.c#3 (text+ko) ====

@@ -568,10 +568,12 @@
 #if (RINGMAP_INTR_DEB)
 				PRINT_RING_PTRS(co->ring);
 #endif
-				rm->funcs->set_tail(co->ring->userrp, co->hw_rx_ring);
 				/* set hardware speciffic time stamp function */
 				getmicrotime(&co->ring->last_ts);
+
 				++co->ring->intr_num;
+				rm->funcs->set_tail(co->ring->userrp, co->hw_rx_ring);
+
 				break;
 			}
 		}
@@ -597,7 +599,7 @@
 	if (rm->funcs->pkt_filter != NULL)
 		rm->funcs->pkt_filter(co, slot_num);
 
-	co->ring->kernrp = slot_num;
+	co->ring->kernrp = R_MODULO(slot_num + 1);
 #ifdef RINGMAP_TIMESTAMP
 	co->ring->slot[slot_num].ts = co->ring->last_ts;
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012211828.oBLISrT9089950>