summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_skreg.h
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2000-10-12 02:42:25 +0000
committerbmilekic <bmilekic@FreeBSD.org>2000-10-12 02:42:25 +0000
commitaafc1878fc75e62a7b5831a4bf7a5de695962f45 (patch)
treeed86040b1a1b71aae03f7d95de89991314ef171c /sys/pci/if_skreg.h
parente2a5a4428421b058fc1f48ec250f3aad41fae543 (diff)
downloadFreeBSD-src-aafc1878fc75e62a7b5831a4bf7a5de695962f45.zip
FreeBSD-src-aafc1878fc75e62a7b5831a4bf7a5de695962f45.tar.gz
Make if_sk stop using the "hide the softc structure in the jumbo buffer"
now that the mbuf system can handle passing it to the driver itself. Reviewed by: wpaul Tested by: wpaul (Bill Paul) with "jumbograms" enabled
Diffstat (limited to 'sys/pci/if_skreg.h')
-rw-r--r--sys/pci/if_skreg.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/pci/if_skreg.h b/sys/pci/if_skreg.h
index 24cce27..92a26be 100644
--- a/sys/pci/if_skreg.h
+++ b/sys/pci/if_skreg.h
@@ -1114,18 +1114,13 @@ struct sk_tx_desc {
#define SK_JUMBO_MTU (SK_JUMBO_FRAMELEN-ETHER_HDR_LEN-ETHER_CRC_LEN)
#define SK_JSLOTS 384
-#define SK_JRAWLEN (SK_JUMBO_FRAMELEN + ETHER_ALIGN + sizeof(u_int64_t))
+#define SK_JRAWLEN (SK_JUMBO_FRAMELEN + ETHER_ALIGN)
#define SK_JLEN (SK_JRAWLEN + (sizeof(u_int64_t) - \
(SK_JRAWLEN % sizeof(u_int64_t))))
-#define SK_MCLBYTES (SK_JLEN - sizeof(u_int64_t))
#define SK_JPAGESZ PAGE_SIZE
#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;
-};
-
struct sk_jpool_entry {
int slot;
SLIST_ENTRY(sk_jpool_entry) jpool_entries;
@@ -1147,7 +1142,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;
};
OpenPOWER on IntegriCloud