|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Temporary fix for netif ring overflow, until we move
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 79bb7dfb8fc1b56b3e121558f8541b426256f26f
# Parent 8d04aa7b42805d6d15c651abe13249c4d2eefaf7
Temporary fix for netif ring overflow, until we move
netfront/netback to grant tables.
diff -r 8d04aa7b4280 -r 79bb7dfb8fc1 xen/include/public/io/netif.h
--- a/xen/include/public/io/netif.h Fri Jul 15 07:53:46 2005
+++ b/xen/include/public/io/netif.h Fri Jul 15 08:22:18 2005
@@ -46,8 +46,18 @@
#define MASK_NETIF_RX_IDX(_i) ((_i)&(NETIF_RX_RING_SIZE-1))
#define MASK_NETIF_TX_IDX(_i) ((_i)&(NETIF_TX_RING_SIZE-1))
+#ifdef __x86_64__
+/*
+ * This restriction can be lifted when we move netfront/netback to use
+ * grant tables. This will remove memory_t fields from the above structures
+ * and thus relax natural alignment restrictions.
+ */
+#define NETIF_TX_RING_SIZE 128
+#define NETIF_RX_RING_SIZE 128
+#else
#define NETIF_TX_RING_SIZE 256
#define NETIF_RX_RING_SIZE 256
+#endif
/* This structure must fit in a memory page. */
typedef struct netif_tx_interface {
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Temporary fix for netif ring overflow, until we move,
Xen patchbot -unstable <=
|
|
|
|
|