[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8f7ca327-b5e4-7d33-0f6e-dbc14411a98d@intel.com>
Date: Mon, 21 Aug 2023 13:42:24 -0700
From: "Linga, Pavan Kumar" <pavan.kumar.linga@...el.com>
To: Jakub Kicinski <kuba@...nel.org>, Tony Nguyen <anthony.l.nguyen@...el.com>
CC: <davem@...emloft.net>, <pabeni@...hat.com>, <edumazet@...gle.com>,
<netdev@...r.kernel.org>, Joshua Hay <joshua.a.hay@...el.com>,
<emil.s.tantilov@...el.com>, <jesse.brandeburg@...el.com>,
<sridhar.samudrala@...el.com>, <shiraz.saleem@...el.com>,
<sindhu.devale@...el.com>, <willemb@...gle.com>, <decot@...gle.com>,
<andrew@...n.ch>, <leon@...nel.org>, <mst@...hat.com>,
<simon.horman@...igine.com>, <shannon.nelson@....com>,
<stephen@...workplumber.org>, Alan Brady <alan.brady@...el.com>, "Madhu
Chittim" <madhu.chittim@...el.com>, Phani Burra <phani.r.burra@...el.com>
Subject: Re: [PATCH net-next v5 10/15] idpf: add splitq start_xmit
On 8/18/2023 11:37 AM, Jakub Kicinski wrote:
> On Tue, 15 Aug 2023 17:43:00 -0700 Tony Nguyen wrote:
>> + netif_stop_subqueue(tx_q->vport->netdev, tx_q->idx);
>> +
>> + /* Memory barrier before checking head and tail */
>> + smp_mb();
>> +
>> + /* Check again in a case another CPU has just made room available. */
>> + if (likely(IDPF_DESC_UNUSED(tx_q) < size))
>> + return -EBUSY;
>> +
>> + /* A reprieve! - use start_subqueue because it doesn't call schedule */
>> + netif_start_subqueue(tx_q->vport->netdev, tx_q->idx);
>
> Please use the helpers from include/net/netdev_queues.h.
>
Thanks for the feedback. Will make use of the helpers.
Regards,
Pavan
Powered by blists - more mailing lists