[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <MW4PR11MB5889C4E3889E6F6B8A07C3E68EAF2@MW4PR11MB5889.namprd11.prod.outlook.com>
Date: Wed, 2 Apr 2025 13:22:44 +0000
From: "Olech, Milena" <milena.olech@...el.com>
To: "Keller, Jacob E" <jacob.e.keller@...el.com>, "Nguyen, Anthony L"
<anthony.l.nguyen@...el.com>, "davem@...emloft.net" <davem@...emloft.net>,
"kuba@...nel.org" <kuba@...nel.org>, "pabeni@...hat.com" <pabeni@...hat.com>,
"Dumazet, Eric" <edumazet@...gle.com>, "andrew+netdev@...n.ch"
<andrew+netdev@...n.ch>, "netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: "Kitszel, Przemyslaw" <przemyslaw.kitszel@...el.com>, "Kolacinski, Karol"
<karol.kolacinski@...el.com>, "richardcochran@...il.com"
<richardcochran@...il.com>, "Lobakin, Aleksander"
<aleksander.lobakin@...el.com>, "Salin, Samuel" <samuel.salin@...el.com>
Subject: RE: [PATCH net-next 10/10] idpf: change the method for mailbox
workqueue allocation
On 03/25/2025 10:09 PM, Jacob Keller wrote:
>On 3/18/2025 9:13 AM, Tony Nguyen wrote:
>> From: Milena Olech <milena.olech@...el.com>
>>
>> Since workqueues are created per CPU, the works scheduled to this
>> workqueues are run on the CPU they were assigned. It may result in
>> overloaded CPU that is not able to handle virtchnl messages in
>> relatively short time. Allocating workqueue with WQ_UNBOUND and
>> WQ_HIGHPRI flags allows scheduler to queue virtchl messages on less loaded
>> CPUs, what eliminates delays.
>>
>> Reviewed-by: Alexander Lobakin <aleksander.lobakin@...el.com>
>> Signed-off-by: Milena Olech <milena.olech@...el.com>
>> Tested-by: Samuel Salin <Samuel.salin@...el.com>
>> Signed-off-by: Tony Nguyen <anthony.l.nguyen@...el.com>
>> ---
>> drivers/net/ethernet/intel/idpf/idpf_main.c | 5 ++---
>> 1 file changed, 2 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/net/ethernet/intel/idpf/idpf_main.c b/drivers/net/ethernet/intel/idpf/idpf_main.c
>> index 60bae3081035..022645f4fa9c 100644
>> --- a/drivers/net/ethernet/intel/idpf/idpf_main.c
>> +++ b/drivers/net/ethernet/intel/idpf/idpf_main.c
>> @@ -198,9 +198,8 @@ static int idpf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
>> goto err_serv_wq_alloc;
>> }
>>
>> - adapter->mbx_wq = alloc_workqueue("%s-%s-mbx",
>> - WQ_UNBOUND | WQ_MEM_RECLAIM, 0,
>> - dev_driver_string(dev),
>> + adapter->mbx_wq = alloc_workqueue("%s-%s-mbx", WQ_UNBOUND | WQ_HIGHPRI,
>> + 0, dev_driver_string(dev),
>> dev_name(dev));
>> if (!adapter->mbx_wq) {
>> dev_err(dev, "Failed to allocate mailbox workqueue\n");
>
>I would reorder this patch first in the series, since it is required
>(due to the way idpf communicates), but is not strictly related to PTP.
>
Sure, I can make it the first in the series.
Thanks,
Milena
>Thanks,
>Jake
>
Powered by blists - more mailing lists