Thread (18 messages) 18 messages, 5 authors, 2025-10-27

Re: [PATCH net-next 2/9] hinic3: Add PF management interfaces

From: Markus Elfring <hidden>
Date: 2025-10-15 10:00:49
Also in: linux-doc, lkml

To: Fan Gong …
Please reconsider the distribution of recipient information between message fields
once more.


…
quoted hunk ↗ jump to hunk
+++ b/drivers/net/ethernet/huawei/hinic3/hinic3_mgmt.c
@@ -3,19 +3,325 @@
+static void mgmt_resp_msg_handler(struct hinic3_msg_pf_to_mgmt *pf_to_mgmt,
+				  struct hinic3_recv_msg *recv_msg)
+{
+	spin_lock(&pf_to_mgmt->sync_event_lock);
+	if (recv_msg->msg_id != pf_to_mgmt->sync_msg_id) {
+	}
+	spin_unlock(&pf_to_mgmt->sync_event_lock);
+}
…

Will development interests grow to apply a call like “scoped_guard(spinlock, &pf_to_mgmt->sync_event_lock)”?
https://elixir.bootlin.com/linux/v6.17.1/source/include/linux/spinlock.h#L565-L567

Regards,
Markus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help