[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mysterious memory corruption bug
From: |
Bean |
Subject: |
Re: Mysterious memory corruption bug |
Date: |
Wed, 2 May 2012 04:09:42 +0800 |
On Wed, May 2, 2012 at 4:06 AM, Vladimir 'φ-coder/phcoder' Serbinenko
<address@hidden> wrote:
> On 01.05.2012 22:02, Bean wrote:
>> Hi,
>>
>> Yeah, I have a patch that save the buffer for later use when there is
>> no data, it can solve the unnecessary alloc/free loop.
> No, what I mean: allocate a buffer once for every card and then do
> send/recv with only this buffer and copy to/from it when necessary. This
> way if the card DMAs the packet to the same buffer it won't corrupt
> anything.
Hi,
It's not ok with fragmentation, since there could be multiple ethernet
packet for an ip packet, we need to store the buffer for assembling.
--
Best wishes
Bean
- Mysterious memory corruption bug, Bean, 2012/05/01
- Re: Mysterious memory corruption bug, Vladimir 'φ-coder/phcoder' Serbinenko, 2012/05/01
- Re: Mysterious memory corruption bug, Bean, 2012/05/01
- Re: Mysterious memory corruption bug, Bean, 2012/05/01
- Re: Mysterious memory corruption bug, Vladimir 'φ-coder/phcoder' Serbinenko, 2012/05/01
- Re: Mysterious memory corruption bug, Bean, 2012/05/01
- Re: Mysterious memory corruption bug, Vladimir 'φ-coder/phcoder' Serbinenko, 2012/05/01
- Re: Mysterious memory corruption bug,
Bean <=
- Re: Mysterious memory corruption bug, Vladimir 'φ-coder/phcoder' Serbinenko, 2012/05/01
- Re: Mysterious memory corruption bug, Bean, 2012/05/01
- unsubscribe, Daniel Senderowicz, 2012/05/01
- Re: unsubscribe, Gregg Levine, 2012/05/01