Re: [dpdk-dev] [PATCH 4/4] examples/l3fwd: make data struct to be memory efficient

2021-04-26 Thread Ruifeng Wang
; > Subject: RE: [dpdk-dev] [PATCH 4/4] examples/l3fwd: make data struct to be > memory efficient > > > > >> There are some holes in data struct lcore_conf. The holes are due > > >> to alignment requirement. > > >> > > >> For struct lcor

Re: [dpdk-dev] [PATCH 4/4] examples/l3fwd: make data struct to be memory efficient

2021-04-26 Thread Walsh, Conor
> >> There are some holes in data struct lcore_conf. The holes are > >> due to alignment requirement. > >> > >> For struct lcore_rx_queue, there is no need to make every element > >> of this type to be cache line aligned, because the data is not > >> shared between cores. > >> > >> Member len of s

Re: [dpdk-dev] [PATCH 4/4] examples/l3fwd: make data struct to be memory efficient

2021-04-20 Thread Hemant Agrawal
On 4/14/2021 12:36 AM, Jerin Jacob wrote: On Thu, Mar 18, 2021 at 3:56 PM Ruifeng Wang wrote: There are some holes in data struct lcore_conf. The holes are due to alignment requirement. For struct lcore_rx_queue, there is no need to make every element of this type to be cache line aligned, b

Re: [dpdk-dev] [PATCH 4/4] examples/l3fwd: make data struct to be memory efficient

2021-04-13 Thread Jerin Jacob
On Thu, Mar 18, 2021 at 3:56 PM Ruifeng Wang wrote: > > There are some holes in data struct lcore_conf. The holes are > due to alignment requirement. > > For struct lcore_rx_queue, there is no need to make every element > of this type to be cache line aligned, because the data is not > shared betw

[dpdk-dev] [PATCH 4/4] examples/l3fwd: make data struct to be memory efficient

2021-03-18 Thread Ruifeng Wang
There are some holes in data struct lcore_conf. The holes are due to alignment requirement. For struct lcore_rx_queue, there is no need to make every element of this type to be cache line aligned, because the data is not shared between cores. Member len of struct mbuf_table can be moved out. So d