summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2007-06-12 10:51:47 +0000
committeryongari <yongari@FreeBSD.org>2007-06-12 10:51:47 +0000
commit5589e856fbb16d98634e4a7c21f34bcf739648dc (patch)
treede78783dde2b507a09c911391c33163af324f6ef
parent783e1d8e6f062349544490a3289d08c5bd5ede52 (diff)
downloadFreeBSD-src-5589e856fbb16d98634e4a7c21f34bcf739648dc.zip
FreeBSD-src-5589e856fbb16d98634e4a7c21f34bcf739648dc.tar.gz
The maximum size of the sum of all segment lengths in a given DMA mapping
should be 65535 + link layer headers. Pointed out by: gallatin
-rw-r--r--sys/dev/msk/if_mskreg.h2
-rw-r--r--sys/dev/nfe/if_nfereg.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/msk/if_mskreg.h b/sys/dev/msk/if_mskreg.h
index a0e99fd..8d90401 100644
--- a/sys/dev/msk/if_mskreg.h
+++ b/sys/dev/msk/if_mskreg.h
@@ -2185,7 +2185,7 @@ struct msk_stat_desc {
#define MSK_STAT_RING_CNT ((1 + 3) * (MSK_TX_RING_CNT + MSK_RX_RING_CNT))
#define MSK_MAXTXSEGS 32
#define MSK_TSO_MAXSGSIZE 4096
-#define MSK_TSO_MAXSIZE 65535
+#define MSK_TSO_MAXSIZE (65535 + sizeof(struct ether_vlan_header))
#define MSK_MAXRXSEGS 32
/*
diff --git a/sys/dev/nfe/if_nfereg.h b/sys/dev/nfe/if_nfereg.h
index 716428e..78b73bb 100644
--- a/sys/dev/nfe/if_nfereg.h
+++ b/sys/dev/nfe/if_nfereg.h
@@ -51,7 +51,7 @@
#define NFE_MAX_SCATTER 32
#define NFE_TSO_MAXSGSIZE 4096
-#define NFE_TSO_MAXSIZE 65535
+#define NFE_TSO_MAXSIZE (65535 + sizeof(struct ether_vlan_header))
#define NFE_IRQ_STATUS 0x000
#define NFE_IRQ_MASK 0x004
OpenPOWER on IntegriCloud