[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 667] Re: LanCard support
Surapich Phuvoravan wrote:
> I try to setup some testbed using AltQ2.0 or later. I download both
> AltQ2.0 and AltQ3.0 to choose between them. I check the compatible LanCard
> list in the Altq web site. I can't fine the LanCard that I have. I just
> wonder if anyone can tell me if the Altq can be use with this Lancard
> The LanCard that I talke about is
>
> "Adaptec AIC-6915 4 Ports NIC" It was detect by FreeBSD as sf0 to sf3 (
> due to it has 4 Ports altogether).
A patch to support the sf driver is attached. (it's for FreeBSD-4.2)
> Also I have one more question. Do you know the Altq version that can be
> run in Linux.
Nop.
-Kenjiro
--- if_sf.c.orig Wed Dec 20 17:59:15 2000
+++ if_sf.c Wed Dec 20 18:01:41 2000
@@ -824,7 +824,8 @@
ifp->if_watchdog = sf_watchdog;
ifp->if_init = sf_init;
ifp->if_baudrate = 10000000;
- ifp->if_snd.ifq_maxlen = SF_TX_DLIST_CNT - 1;
+ IFQ_SET_MAXLEN(&ifp->if_snd, SF_TX_DLIST_CNT - 1);
+ IFQ_SET_READY(&ifp->if_snd);
/*
* Call MI attach routine.
@@ -1119,7 +1120,7 @@
/* Re-enable interrupts. */
csr_write_4(sc, SF_IMR, SF_INTRS);
- if (ifp->if_snd.ifq_head != NULL)
+ if (!IFQ_IS_EMPTY(&ifp->if_snd))
sf_start(ifp);
return;
@@ -1323,7 +1324,7 @@
i = SF_IDX_HI(txprod) >> 4;
while(sc->sf_ldata->sf_tx_dlist[i].sf_mbuf == NULL) {
- IF_DEQUEUE(&ifp->if_snd, m_head);
+ IFQ_DEQUEUE(&ifp->if_snd, m_head);
if (m_head == NULL)
break;
@@ -1439,7 +1440,7 @@
if (mii->mii_media_status & IFM_ACTIVE &&
IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE)
sc->sf_link++;
- if (ifp->if_snd.ifq_head != NULL)
+ if (!IFQ_IS_EMPTY(&ifp->if_snd))
sf_start(ifp);
}
@@ -1464,7 +1465,7 @@
sf_reset(sc);
sf_init(sc);
- if (ifp->if_snd.ifq_head != NULL)
+ if (!IFQ_IS_EMPTY(&ifp->if_snd))
sf_start(ifp);
return;