summaryrefslogtreecommitdiffstats
path: root/sys/dev/mxge/if_mxge_var.h
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2009-06-01 19:16:57 +0000
committergallatin <gallatin@FreeBSD.org>2009-06-01 19:16:57 +0000
commit427620ee0659b77e2b931afe638be6b5a9b1a058 (patch)
tree07b6db6f3a12c4494fe286c4bb52480113279e8f /sys/dev/mxge/if_mxge_var.h
parent76a0fffb3aa812e92e74cba163cb105eb9c6903d (diff)
downloadFreeBSD-src-427620ee0659b77e2b931afe638be6b5a9b1a058.zip
FreeBSD-src-427620ee0659b77e2b931afe638be6b5a9b1a058.tar.gz
Set an rx jumbo cluster to the correct size before
using bus_dmamap_load_mbuf_sg() on it. This prevents data corruption when the mxge MTU is between 4076 and 8172 on machines with 4KB pages and MXGE_VIRT_JUMBOS is in use (which it isn't, in -current or -stable)
Diffstat (limited to 'sys/dev/mxge/if_mxge_var.h')
-rw-r--r--sys/dev/mxge/if_mxge_var.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mxge/if_mxge_var.h b/sys/dev/mxge/if_mxge_var.h
index 28e12c1..b17faf2 100644
--- a/sys/dev/mxge/if_mxge_var.h
+++ b/sys/dev/mxge/if_mxge_var.h
@@ -120,6 +120,7 @@ typedef struct
int cl_size;
int alloc_fail;
int mask; /* number of rx slots -1 */
+ int mlen;
} mxge_rx_ring_t;
typedef struct
OpenPOWER on IntegriCloud