This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] Temporary fix for netif ring overflow, until we move

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Temporary fix for netif ring overflow, until we move
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Jul 2005 04:22:10 -0400
Delivery-date: Fri, 15 Jul 2005 08:22:37 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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
 #define NETIF_TX_RING_SIZE 256
 #define NETIF_RX_RING_SIZE 256
 /* This structure must fit in a memory page. */
 typedef struct netif_tx_interface {

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Temporary fix for netif ring overflow, until we move, Xen patchbot -unstable <=