Netdev List
 help / color / mirror / Atom feed
From: Andrey Derkach <gabin278@gmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: Manivannan Sadhasivam <mani@kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Willem de Bruijn <willemb@google.com>,
	Simon Horman <horms@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH net] net: qrtr: smd: hold packets that arrive before probe has finished
Date: Fri,  4 Dec 2026 23:06:06 +0200	[thread overview]
Message-ID: <20261204210606.534656-1-gabin278@gmail.com> (raw)
In-Reply-To: <179640638895.3146.13536976927342826919@kernel.org>

On Fri, 04 Dec 2026 17:46:28 +0000, netdev-bot+sashiko@kernel.org wrote:
> - [Medium] On SMD, a packet held during probe can now be lost, and
>   nothing logs it.

Agreed. Before this patch SMD left such a packet in the FIFO, and
qcom_smd_announce_create() delivered it right after probe, so SMD
doesn't need the hold and only gains this failure case. In v2,
qcom_smd_qrtr_post_held() checks the return value, counts posted and
dropped packets, and warns when a held packet is dropped. The commit
message now says that SMD holds the packet instead of leaving it in
the FIFO.

> - [Medium] While drvdata is NULL, the remote can fill the held queue
>   without limit.

Agreed. In my tests at most 3 packets were held (the modem's HELLO and
two NEW_SERVER). v2 caps the queue at 32 packets. Once it is full,
the callback returns -EAGAIN, so SMD leaves the rest in the FIFO and
GLINK drops them, both as before the patch. The cap also bounds the
time spent posting under the lock. I kept the posting under the lock
so the held packets stay ahead of later ones; the callback already
runs in hard IRQ context on both SMD and GLINK.

pw-bot: cr

      reply	other threads:[~2026-12-04 21:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 17:05 [PATCH net] net: qrtr: smd: hold packets that arrive before probe has finished Andrey Derkach
2026-12-04 17:46 ` netdev-bot+sashiko
2026-12-04 21:06   ` Andrey Derkach [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204210606.534656-1-gabin278@gmail.com \
    --to=gabin278@gmail.com \
    --cc=andersson@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox