Re: [ovs-dev] [PATCH] dpif-netdev: Allocate dp_netdev_pmd_thread struct by xzalloc_cacheline.

2017-12-08 Thread Bodireddy, Bhanuprakash
> >On 08.12.2017 18:44, Bodireddy, Bhanuprakash wrote: >>> >>> On 08.12.2017 16:45, Stokes, Ian wrote: > All instances of struct dp_netdev_pmd_thread are allocated by > xzalloc and therefore doesn't guarantee memory allocation aligned > on CACHE_LINE_SIZE boundary. Due to this any paddi

Re: [ovs-dev] [PATCH] dpif-netdev: Allocate dp_netdev_pmd_thread struct by xzalloc_cacheline.

2017-12-08 Thread Ilya Maximets
On 08.12.2017 18:44, Bodireddy, Bhanuprakash wrote: >> >> On 08.12.2017 16:45, Stokes, Ian wrote: All instances of struct dp_netdev_pmd_thread are allocated by xzalloc and therefore doesn't guarantee memory allocation aligned on CACHE_LINE_SIZE boundary. Due to this any padding done

Re: [ovs-dev] [PATCH] dpif-netdev: Allocate dp_netdev_pmd_thread struct by xzalloc_cacheline.

2017-12-08 Thread Bodireddy, Bhanuprakash
> >On 08.12.2017 16:45, Stokes, Ian wrote: >>> All instances of struct dp_netdev_pmd_thread are allocated by xzalloc >>> and therefore doesn't guarantee memory allocation aligned on >>> CACHE_LINE_SIZE boundary. Due to this any padding done inside the >>> structure with this assumption might create

Re: [ovs-dev] [PATCH] dpif-netdev: Allocate dp_netdev_pmd_thread struct by xzalloc_cacheline.

2017-12-08 Thread Ilya Maximets
On 08.12.2017 16:45, Stokes, Ian wrote: >> All instances of struct dp_netdev_pmd_thread are allocated by xzalloc and >> therefore doesn't guarantee memory allocation aligned on CACHE_LINE_SIZE >> boundary. Due to this any padding done inside the structure with this >> assumption might create holes.

Re: [ovs-dev] [PATCH] dpif-netdev: Allocate dp_netdev_pmd_thread struct by xzalloc_cacheline.

2017-12-08 Thread Stokes, Ian
> All instances of struct dp_netdev_pmd_thread are allocated by xzalloc and > therefore doesn't guarantee memory allocation aligned on CACHE_LINE_SIZE > boundary. Due to this any padding done inside the structure with this > assumption might create holes. > > This commit replaces xzalloc, free wit

[ovs-dev] [PATCH] dpif-netdev: Allocate dp_netdev_pmd_thread struct by xzalloc_cacheline.

2017-11-26 Thread Bhanuprakash Bodireddy
All instances of struct dp_netdev_pmd_thread are allocated by xzalloc and therefore doesn't guarantee memory allocation aligned on CACHE_LINE_SIZE boundary. Due to this any padding done inside the structure with this assumption might create holes. This commit replaces xzalloc, free with xzalloc_ca