Re: [PATCH] bug fix for efi network

2012-05-03 Thread Bean
On Thu, May 3, 2012 at 11:38 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 29.04.2012 17:05, Bean wrote: >> +  for (i = 0; i < 3; i++) >>      { >> +      grub_uint64_t limit_time; >> + >> +      efi_call_3 (net->get_status, net, &int_status, 0); >> + >> +      limit_time = grub_get_time_m

Re: [PATCH] bug fix for efi network

2012-05-03 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 29.04.2012 17:05, Bean wrote: > + for (i = 0; i < 3; i++) > { > + grub_uint64_t limit_time; > + > + efi_call_3 (net->get_status, net, &int_status, 0); > + > + limit_time = grub_get_time_ms () + 5; > + for (;;) > + { > + st = efi_call_7 (net->transm

Re: [PATCH] bug fix for efi network

2012-05-03 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 29.04.2012 20:19, Bean wrote: > 2012/4/30 Vladimir 'φ-coder/phcoder' Serbinenko : >> On 29.04.2012 10:22, Bean wrote: >>> Hi, >>> >>> This patch fix a few bugs in efinet. >>> >>> It also change the tftp block size from 1024 to 8192, which would >>> result in HUGE speed difference. In my previous

Re: [PATCH] bug fix for efi network

2012-04-29 Thread Bean
2012/4/30 Vladimir 'φ-coder/phcoder' Serbinenko : > On 29.04.2012 10:22, Bean wrote: >> Hi, >> >> This patch fix a few bugs in efinet. >> >> It also change the tftp block size from 1024 to 8192, which would >> result in HUGE speed difference. In my previous testing, the larger >> the block size, th

Re: [PATCH] bug fix for efi network

2012-04-29 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 29.04.2012 10:22, Bean wrote: > Hi, > > This patch fix a few bugs in efinet. > > It also change the tftp block size from 1024 to 8192, which would > result in HUGE speed difference. In my previous testing, the larger > the block size, the faster the speed. It can reach up to 60-70MB/s in > 1Gb e

Re: [PATCH] bug fix for efi network

2012-04-29 Thread Bean
Hi, Update: I also rewrite the send_card_buffer function. Also add support for tftp_block_size environment variable which allows user to specify customized block size (default is 8192). for example: set tftp_block_size=16384 testspeed (tftp)/imagefile When testing in virtual machine, try not to

Re: [PATCH] bug fix for efi network

2012-04-29 Thread Bean
Hi, Sorry, the previous patch missed a similar bug. On Sun, Apr 29, 2012 at 4:22 PM, Bean wrote: > Hi, > > This patch fix a few bugs in efinet. > > It also change the tftp block size from 1024 to 8192, which would > result in HUGE speed difference. In my previous testing, the larger > the block

[PATCH] bug fix for efi network

2012-04-29 Thread Bean
Hi, This patch fix a few bugs in efinet. It also change the tftp block size from 1024 to 8192, which would result in HUGE speed difference. In my previous testing, the larger the block size, the faster the speed. It can reach up to 60-70MB/s in 1Gb ethernet when block size is about 60K, therefore