]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: Improve the speed of netconsole
authorJoe Hershberger <joe.hershberger@ni.com>
Fri, 3 Aug 2012 10:59:08 +0000 (10:59 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 24 Sep 2012 18:55:43 +0000 (13:55 -0500)
commitf8be7d659c45720edb91503d2a480fc198e7ee9d
treec38ce492840a95d7ff7cd8242703096d3c4e488f
parent2c8fe5120f8da013cbd789be2f10cce880972836
net: Improve the speed of netconsole

Previously u-boot would initialize the network interface for every
network operation and then shut it down again.  This makes sense for
most operations where the network in not known to be needed soon after
the operation is complete.  In the case of netconsole, it will use the
network for every interaction with the shell or every printf.  This
means that the network is being reinitialized very often.  On many
devices, this intialization is very slow.

This patch checks for consecutive netconsole actions and leaves the
ethernet hardware initialized between them.  It will still behave the
same old way for all other network operations and any time another
network operation happens between netconsole operations.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
common/cmd_bootm.c
drivers/net/netconsole.c
include/net.h
net/eth.c
net/net.c