[dpdk-dev] [PATCH v2] eal: fix check number of bytes from read function

2016-07-22 Thread Thomas Monjalon
2016-07-22 17:02, Sergio Gonzalez Monroy: > On 22/07/2016 16:24, Thomas Monjalon wrote: > > 2016-07-22 16:33, Michal Jastrzebski: > >> v2: > >> -moved close(fd) just after read. > >> -when read() from fd we expect 8 bytes, so PFN_MASK_SIZE macro > >> was introduced instead sizeof(uint64_t). > >>

[dpdk-dev] [PATCH v2] eal: fix check number of bytes from read function

2016-07-22 Thread Thomas Monjalon
2016-07-22 16:33, Michal Jastrzebski: > v2: > -moved close(fd) just after read. > -when read() from fd we expect 8 bytes, so PFN_MASK_SIZE macro > was introduced instead sizeof(uint64_t). > -removed errno print when read returns less than 8 bytes Looks better. Note: this changelog should be

[dpdk-dev] [PATCH v2] eal: fix check number of bytes from read function

2016-07-22 Thread Sergio Gonzalez Monroy
On 22/07/2016 16:24, Thomas Monjalon wrote: > 2016-07-22 16:33, Michal Jastrzebski: >> v2: >> -moved close(fd) just after read. >> -when read() from fd we expect 8 bytes, so PFN_MASK_SIZE macro >> was introduced instead sizeof(uint64_t). >> -removed errno print when read returns less than 8 bytes

[dpdk-dev] [PATCH v2] eal: fix check number of bytes from read function

2016-07-22 Thread Michal Jastrzebski
v2: -moved close(fd) just after read. -when read() from fd we expect 8 bytes, so PFN_MASK_SIZE macro was introduced instead sizeof(uint64_t). -removed errno print when read returns less than 8 bytes In rte_mem_virt2phy: Value returned from a function and indicating the number of bytes was

[dpdk-dev] [PATCH v2] eal: fix check number of bytes from read function

2016-07-22 Thread Jastrzebski, MichalX K
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, July 22, 2016 5:25 PM > To: Jastrzebski, MichalX K > Cc: Richardson, Bruce ; dev at dpdk.org; > Kobylinski, MichalX ; Gonzalez Monroy, > Sergio ; david.marchand at 6wind.com > Subject: Re: