Re: [E1000-devel] How the ixgbe and Linux network stack manage memory

2016-10-17 Thread Michał Purzyński
Thank you! Yes, it filled the last missing pieces :) Lesson learned - memory allocations are not free, after all. On Sun, Oct 16, 2016 at 10:54 PM, Alexander Duyck wrote: > On Sun, Oct 16, 2016 at 4:52 AM, Michał Purzyński > wrote: > > Could you fill me in on how the bounce buffer approach to m

Re: [E1000-devel] How the ixgbe and Linux network stack manage memory

2016-10-16 Thread Alexander Duyck
On Sun, Oct 16, 2016 at 4:52 AM, Michał Purzyński wrote: > Could you fill me in on how the bounce buffer approach to memory management > in IXGBE and I40E works? > > Why do you allocate the same amount of memory in ixgbe_setup_rx_resources() > twice? > First time with a call to rx_ring->rx_buffer_

[E1000-devel] How the ixgbe and Linux network stack manage memory

2016-10-16 Thread Michał Purzyński
Could you fill me in on how the bounce buffer approach to memory management in IXGBE and I40E works? Why do you allocate the same amount of memory in ixgbe_setup_rx_resources() twice? First time with a call to rx_ring->rx_buffer_info = vzalloc_node() - where size represents what I set with ethtool