PERFORCE change 126116 for review

Kip Macy kmacy at FreeBSD.org
Wed Sep 5 19:58:38 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=126116

Change 126116 by kmacy at kmacy_home:ethng on 2007/09/06 02:58:03

	define cxgb_tx_common and process_responses
	fix out of memory condition for non-IFNET_MULTIQ case
	fix tx queue binding to be correct for the 4-port case

Affected files ...

.. //depot/projects/ethng/src/sys/dev/cxgb/cxgb_adapter.h#14 edit
.. //depot/projects/ethng/src/sys/dev/cxgb/cxgb_main.c#15 edit

Differences ...

==== //depot/projects/ethng/src/sys/dev/cxgb/cxgb_adapter.h#14 (text+ko) ====

@@ -590,9 +590,10 @@
     struct in6_addr *rip, uint16_t rport, int ipv6);
 void cxgb_pcpu_shutdown_threads(struct adapter *sc);
 void cxgb_pcpu_startup_threads(struct adapter *sc);
-int cxgb_tx_common(struct ifnet *ifp, struct sge_qset  *qs, uint32_t txmax);
 #endif
 
+int process_responses(adapter_t *adap, struct sge_qset *qs, int budget);
+int cxgb_tx_common(struct ifnet *ifp, struct sge_qset  *qs, uint32_t txmax);
 void t3_free_qset(adapter_t *sc, struct sge_qset *q);
 int cxgb_dequeue_packet(struct ifnet *, struct sge_txq *, struct mbuf **);
 void cxgb_start(struct ifnet *ifp);

==== //depot/projects/ethng/src/sys/dev/cxgb/cxgb_main.c#15 (text+ko) ====

@@ -1456,7 +1456,7 @@
 
 		for (j = 0; j < pi->nqsets; ++j)
 			send_pktsched_cmd(sc, 1, pi->first_qset + j, -1,
-					  -1, i);
+					  -1, pi->tx_chan);
 	}
 }
 
@@ -1998,11 +1998,11 @@
 		if (err == ENOMEM) {
 			ifp->if_drv_flags |= IFF_DRV_OACTIVE;
 			IFQ_LOCK(&ifp->if_snd);
-			IFQ_DRV_PREPEND(&ifp->if_snd, m);
+			IFQ_DRV_PREPEND(&ifp->if_snd, m_vec[0]);
 			IFQ_UNLOCK(&ifp->if_snd);
 		}
 	}
-	if (err == 0 && m == NULL) {
+	if (err == 0 && m_vec[0] == NULL) {
 		err = ENOBUFS;
 	}
 	else if ((err == 0) &&  (txq->size <= txq->in_use + TX_MAX_DESC) &&


More information about the p4-projects mailing list