socsvn commit: r289691 - soc2015/stefano/ptnetmap/stable/10/sys/dev/cxgbe

stefano at FreeBSD.org stefano at FreeBSD.org
Thu Aug 13 14:52:15 UTC 2015


Author: stefano
Date: Thu Aug 13 14:52:14 2015
New Revision: 289691
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=289691

Log:
  cxgbe: remove netmap *sync_finalize/prologue()

Modified:
  soc2015/stefano/ptnetmap/stable/10/sys/dev/cxgbe/t4_netmap.c

Modified: soc2015/stefano/ptnetmap/stable/10/sys/dev/cxgbe/t4_netmap.c
==============================================================================
--- soc2015/stefano/ptnetmap/stable/10/sys/dev/cxgbe/t4_netmap.c	Thu Aug 13 14:47:22 2015	(r289690)
+++ soc2015/stefano/ptnetmap/stable/10/sys/dev/cxgbe/t4_netmap.c	Thu Aug 13 14:52:14 2015	(r289691)
@@ -908,8 +908,6 @@
 			kring->nr_hwtail -= kring->nkr_num_slots;
 	}
 
-	nm_txsync_finalize(kring);
-
 	return (0);
 }
 
@@ -922,7 +920,7 @@
 	struct port_info *pi = ifp->if_softc;
 	struct adapter *sc = pi->adapter;
 	struct sge_nm_rxq *nm_rxq = &sc->sge.nm_rxq[pi->first_nm_rxq + kring->ring_id];
-	u_int const head = nm_rxsync_prologue(kring);
+	u_int const head = kring->rhead;
 	u_int n;
 	int force_update = (flags & NAF_FORCE_READ) || kring->nr_kflags & NKR_PENDINTR;
 
@@ -984,8 +982,6 @@
 		}
 	}
 
-	nm_rxsync_finalize(kring);
-
 	return (0);
 }
 


More information about the svn-soc-all mailing list