summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_skreg.h
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-08-04 19:37:27 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-08-04 19:37:27 +0000
commit9e49c584301794b434b9708a3051d1bec2ee79ad (patch)
treee9ffbd8c3f5bc96eecdafde61d0e37e1c5a08c25 /sys/dev/pci/if_skreg.h
parentd05645302fef3101dfcbcd5c441dbf64a9614537 (diff)
Make jumbo frames work.
- allocate and manage our own memory for rx packets rather than using mbuf clusters; code for this lifted from if_bge.c - pass the correct size to bus_dmamap_create() ok deraadt@
Diffstat (limited to 'sys/dev/pci/if_skreg.h')
-rw-r--r--sys/dev/pci/if_skreg.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/pci/if_skreg.h b/sys/dev/pci/if_skreg.h
index b4ed8f78f46..44e7c97f84f 100644
--- a/sys/dev/pci/if_skreg.h
+++ b/sys/dev/pci/if_skreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_skreg.h,v 1.11 2004/05/19 11:37:00 brad Exp $ */
+/* $OpenBSD: if_skreg.h,v 1.12 2004/08/04 19:37:26 mcbride Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -1325,11 +1325,6 @@ struct sk_tx_desc {
#define SK_RESID (SK_JPAGESZ - (SK_JLEN * SK_JSLOTS) % SK_JPAGESZ)
#define SK_JMEM ((SK_JLEN * SK_JSLOTS) + SK_RESID)
-struct sk_jslot {
- caddr_t sk_buf;
- int sk_inuse;
-};
-
struct sk_jpool_entry {
int slot;
LIST_ENTRY(sk_jpool_entry) jpool_entries;
@@ -1360,6 +1355,7 @@ struct sk_chain_data {
struct sk_chain sk_rx_chain[SK_RX_RING_CNT];
struct sk_txmap_entry *sk_tx_map[SK_TX_RING_CNT];
bus_dmamap_t sk_rx_map[SK_RX_RING_CNT];
+ bus_dmamap_t sk_rx_jumbo_map;
int sk_tx_prod;
int sk_tx_cons;
int sk_tx_cnt;
@@ -1367,7 +1363,7 @@ struct sk_chain_data {
int sk_rx_cons;
int sk_rx_cnt;
/* Stick the jumbo mem management stuff here too. */
- struct sk_jslot sk_jslots[SK_JSLOTS];
+ caddr_t sk_jslots[SK_JSLOTS];
void *sk_jumbo_buf;
};