From: Yunjian Wang
In kni_allocate_mbufs(), we alloc mbuf for alloc_q as this code.
allocq_free = (kni->alloc_q->read - kni->alloc_q->write - 1) \
& (MAX_MBUF_BURST_NUM - 1);
The value of allocq_free maybe zero (e.g 32 & (32 - 1) = 0), and
it will not fill the alloc_q. When the al
On 5/31/2021 1:09 PM, wangyunjian wrote:
> From: Yunjian Wang
>
> In kni_allocate_mbufs(), we alloc mbuf for alloc_q as this code.
> allocq_free = (kni->alloc_q->read - kni->alloc_q->write - 1) \
> & (MAX_MBUF_BURST_NUM - 1);
> The value of allocq_free maybe zero (e.g 32 & (32 - 1)
> -Original Message-
> From: Ferruh Yigit [mailto:ferruh.yi...@intel.com]
> Sent: Friday, June 18, 2021 9:37 PM
> To: wangyunjian ; dev@dpdk.org
> Cc: liucheng (J) ; dingxiaoxiong
>
> Subject: Re: [dpdk-dev] [PATCH] kni: fix wrong mbuf alloc count in
> kni_allocate
On 6/21/2021 4:27 AM, wangyunjian wrote:
>> -Original Message-
>> From: Ferruh Yigit [mailto:ferruh.yi...@intel.com]
>> Sent: Friday, June 18, 2021 9:37 PM
>> To: wangyunjian ; dev@dpdk.org
>> Cc: liucheng (J) ; dingxiaoxiong
>>
>> Subject: Re: [d
> -Original Message-
> From: Ferruh Yigit [mailto:ferruh.yi...@intel.com]
> Sent: Monday, June 21, 2021 7:26 PM
> To: wangyunjian ; dev@dpdk.org
> Cc: liucheng (J) ; dingxiaoxiong
>
> Subject: Re: [dpdk-dev] [PATCH] kni: fix wrong mbuf alloc count in
> kni_allocate
PM
>>>> To: wangyunjian ; dev@dpdk.org
>>>> Cc: liucheng (J) ; dingxiaoxiong
>>>>
>>>> Subject: Re: [dpdk-dev] [PATCH] kni: fix wrong mbuf alloc count in
>>>> kni_allocate_mbufs
>>>>
>>>> On 5/31/2021 1:09 PM, wan
6 matches
Mail list logo