Thread (31 messages) 31 messages, 4 authors, 2023-08-23

Re: [PATCH net-next v5 10/15] idpf: add splitq start_xmit

From: Linga, Pavan Kumar <hidden>
Date: 2023-08-21 20:42:42


On 8/18/2023 11:37 AM, Jakub Kicinski wrote:
On Tue, 15 Aug 2023 17:43:00 -0700 Tony Nguyen wrote:
quoted
+	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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help