summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-09-06 23:29:50 +0000
committerwpaul <wpaul@FreeBSD.org>1999-09-06 23:29:50 +0000
commit42dfc06d61547854a23fc272996c9fe5c69120a4 (patch)
tree77885e9c7b53f4a9af2190f3db2962e3f02ec94b
parentcfb6543180691c166f828f0620b50ea0ec5104e5 (diff)
downloadFreeBSD-src-42dfc06d61547854a23fc272996c9fe5c69120a4.zip
FreeBSD-src-42dfc06d61547854a23fc272996c9fe5c69120a4.tar.gz
Fix an instance of FOO_RX_LIST_CNT that should have been FOO_TX_LIST_CNT.
-rw-r--r--sys/pci/if_dm.c2
-rw-r--r--sys/pci/if_sis.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_dm.c b/sys/pci/if_dm.c
index 9f9511e..4f797cc 100644
--- a/sys/pci/if_dm.c
+++ b/sys/pci/if_dm.c
@@ -1350,7 +1350,7 @@ static int dm_encap(sc, m_head, txidx)
for (m = m_new; m != NULL; m = m->m_next) {
if (m->m_len != 0) {
- if ((DM_RX_LIST_CNT -
+ if ((DM_TX_LIST_CNT -
(sc->dm_cdata.dm_tx_cnt + cnt)) < 2)
return(ENOBUFS);
f = &sc->dm_ldata->dm_tx_list[frag];
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index daeb06c..c43a4cb 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -1105,7 +1105,7 @@ static int sis_encap(sc, m_head, txidx)
for (m = m_head; m != NULL; m = m->m_next) {
if (m->m_len != 0) {
- if ((SIS_RX_LIST_CNT -
+ if ((SIS_TX_LIST_CNT -
(sc->sis_cdata.sis_tx_cnt + cnt)) < 2)
return(ENOBUFS);
f = &sc->sis_ldata->sis_tx_list[frag];
OpenPOWER on IntegriCloud