From 427620ee0659b77e2b931afe638be6b5a9b1a058 Mon Sep 17 00:00:00 2001 From: gallatin Date: Mon, 1 Jun 2009 19:16:57 +0000 Subject: 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) --- sys/dev/mxge/if_mxge_var.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/mxge/if_mxge_var.h') 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 -- cgit v1.1