Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Nov 2012 19:24:49 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r243301 - stable/9/sys/dev/netmap
Message-ID:  <201211191924.qAJJOnjY027650@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Nov 19 19:24:48 2012
New Revision: 243301
URL: http://svnweb.freebsd.org/changeset/base/243301

Log:
  MFC r239140: Clarify comments about number of tx / rx rings
  
  MFC r239141: Fix whitespace (missing newline)
  
  Sponsored by: ADARA Networks

Modified:
  stable/9/sys/dev/netmap/netmap.c
  stable/9/sys/dev/netmap/netmap_kern.h
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/netmap/netmap.c
==============================================================================
--- stable/9/sys/dev/netmap/netmap.c	Mon Nov 19 19:19:04 2012	(r243300)
+++ stable/9/sys/dev/netmap/netmap.c	Mon Nov 19 19:24:48 2012	(r243301)
@@ -976,7 +976,9 @@ netmap_lock_wrapper(struct ifnet *dev, i
  * kring	N+1	is only used for the selinfo for all queues.
  * Return 0 on success, ENOMEM otherwise.
  *
- * na->num_tx_rings can be set for cards with different tx/rx setups
+ * By default the receive and transmit adapter ring counts are both initialized
+ * to num_queues.  na->num_tx_rings can be set for cards with different tx/rx
+ * setups.
  */
 int
 netmap_attach(struct netmap_adapter *na, int num_queues)

Modified: stable/9/sys/dev/netmap/netmap_kern.h
==============================================================================
--- stable/9/sys/dev/netmap/netmap_kern.h	Mon Nov 19 19:19:04 2012	(r243300)
+++ stable/9/sys/dev/netmap/netmap_kern.h	Mon Nov 19 19:24:48 2012	(r243301)
@@ -118,8 +118,8 @@ struct netmap_adapter {
 	int separate_locks; /* set if the interface suports different
 			       locks for rx, tx and core. */
 
-	u_int num_rx_rings; /* number of tx/rx ring pairs */
-	u_int num_tx_rings; // if nonzero, overrides num_rx_rings
+	u_int num_rx_rings; /* number of adapter receive rings */
+	u_int num_tx_rings; /* number of adapter transmit rings */
 
 	u_int num_tx_desc; /* number of descriptor in each queue */
 	u_int num_rx_desc;



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