From 2465665b73ac2f688af945b1ed510752afa816a4 Mon Sep 17 00:00:00 2001 From: David Saada Date: Tue, 15 Jan 2008 10:40:24 +0200 Subject: QE UEC: Extend number of supported UECs to 4 This patch extends the number of supported UECs to 4. Note that the problem of QE thread resources exhaustion is resolved by setting the correct number of QE threads according to Ethernet type (GBE or FE). Signed-off-by: David Saada Signed-off-by: Ben Warren --- net/eth.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net/eth.c') diff --git a/net/eth.c b/net/eth.c index 5d9e9c1889..63a4cb652a 100644 --- a/net/eth.c +++ b/net/eth.c @@ -217,6 +217,9 @@ int eth_initialize(bd_t *bis) #if defined(CONFIG_UEC_ETH3) uec_initialize(2); #endif +#if defined(CONFIG_UEC_ETH4) + uec_initialize(3); +#endif #if defined(FEC_ENET) || defined(CONFIG_ETHER_ON_FCC) fec_initialize(bis); -- cgit v1.2.1 From e16925773211291b562e77187061e9dd1d757217 Mon Sep 17 00:00:00 2001 From: Matthias Fuchs Date: Thu, 17 Jan 2008 07:45:05 +0100 Subject: net: add 'ethrotate' environment variable [PATCH] net: add 'ethrotate' environment variable This patch replaces the buildtime configuration option CONFIG_NET_DO_NOT_TRY_ANOTHER through the 'ethrotate' runtime configuration veriable. See README. Signed-off-by: Matthias Fuchs Signed-off-by: Ben Warren --- net/eth.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'net/eth.c') diff --git a/net/eth.c b/net/eth.c index 63a4cb652a..316e817786 100644 --- a/net/eth.c +++ b/net/eth.c @@ -525,6 +525,15 @@ int eth_receive(volatile void *packet, int length) void eth_try_another(int first_restart) { static struct eth_device *first_failed = NULL; + char *ethrotate; + + /* + * Do not rotate between network interfaces when + * 'ethrotate' variable is set to 'no'. + */ + if (((ethrotate = getenv ("ethrotate")) != NULL) && + (strcmp(ethrotate, "no") == 0)) + return; if (!eth_current) return; -- cgit v1.2.1