🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18395

[PATCH can-next v2] can: bcm: Document cyclic transmission failures

#18395
From: raoxu
Date: Wed, 18 Nov 2026 09:19
56 lines
12182 bytes
From: Xu Rao <raoxu@uniontech.com>

The CAN broadcast manager continues its configured cyclic transmission
schedule even when a CAN frame cannot be passed to the configured
network interface.

Such failures are not reported to user space. The failed transmission
is not retried by the broadcast manager, the timing remains unchanged,
and a non-zero count is decremented.

As a result, a TX_EXPIRED notification requested with TX_COUNTEVT
indicates that the configured transmissions at ival1 have been
processed, not that they were successfully sent.

Document this behavior to prevent applications from treating TX_EXPIRED
as confirmation of successful transmission.

Suggested-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Xu Rao <raoxu@uniontech.com>
---
Changes in v2:
- Target can-next as requested by Oliver Hartkopp.
- Adopt Oliver's suggested wording describing transmission failures
  from the user's perspective.
- Clarify the TX_EXPIRED notification semantics and scope the lack of
  retries to the broadcast manager.
- Remove implementation details and redundant descriptions.

This documentation-only update follows the review of v1. The earlier
proposal to change BCM transmission accounting was dropped.

 Documentation/networking/can.rst | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Documentation/networking/can.rst b/Documentation/networking/can.rst
index 51bc70748f75..ae47f40bf456 100644
--- a/Documentation/networking/can.rst
+++ b/Documentation/networking/can.rst
@@ -892,6 +892,14 @@ only one timer is needed 'count' is set to zero and only 'ival2' is used.
 When SET_TIMER and START_TIMER flag were set the timers are activated.
 The timer values can be altered at runtime when only SET_TIMER is set.

+If a CAN frame cannot be passed to the configured CAN network interface
+(e.g. due to a full transmit queue or the interface being down), this
+failure is not reported to user space. The transmission sequence
+continues as configured: the frame is not retried by the broadcast
+manager, the timing remains unchanged, and a non-zero ``count`` is
+decremented anyway. Therefore, a ``TX_EXPIRED`` notification (requested
+with ``TX_COUNTEVT``) only indicates that the ``count`` transmissions
+at ``ival1`` have been processed, not that they were successfully sent.

 Broadcast Manager message sequence transmission
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
2.50.1
Technical Details
Message-ID: <75785AF83A9D9B09+20261118091938.3365557-1-raoxu@uniontech.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365979-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365979-linux-kernel-netdev=dewy.ru
From: raoxu@uniontech.com (raoxu)
Newsgroups: linux.kernel.netdev
Subject: [PATCH can-next v2] can: bcm: Document cyclic transmission failures
Date: Wed, 18 Nov 2026 17:19:38 +0800
Organization: Usenet Network
Message-ID: <75785AF83A9D9B09+20261118091938.3365557-1-raoxu@uniontech.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2553041"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:oyyXTnfx+ImpIwjGd/AAGXPBNTw= sha256:KgYufKEiW6xaNfH44uRSdPXyimr40pI94PXaHs5KpzM=
	sha1:6oDzvlPBRQBeTNfyMQjIWJZYKUg= sha256:UbvZksL16F1oBBjzjK4Et9PnwbQyQGtl1f0k8hg4aZU=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id BDED5115211; Wed, 18 Nov 2026 12:20:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=uniontech.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id BKJdIqE6y5CP;
	Wed, 18 Nov 2026 12:20:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-365979-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=uniontech.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 2218911520B; Wed, 18 Nov 2026 12:20:19 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id E17A13D5CD; Wed, 18 Nov 2026 09:20:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794993617;
	b=3Qs/OrKQWTn2GEIT1zZHLeHBV2HDdE71aLRvNNosRG6IfApMeoIoFOIlcoe1cRKWnH4/
	 erOI6YYjzaBdMs2NJAVd2DZN5acsy+NvFc14dqmAlixm9JTv4lfLfmFe0mBJyPg/s4tLG
	 RfpjGDM4yVR5jybYyecyPDw91977Z0odAJiEZWQMzua8kA32P9NPwKMndl4hHUilxRM3u
	 bImAA+jFpXTYetewYJmpn8JrUr07ij34ssVkIovpwtNkk8EIZ0XvG03qEHq0vCAdmeXg/
	 oITiSeumxzg2wjTpbetHQh7NUVNZ5o3G+joM/Es9gbaSAYqyUwZ36MUDqNZxz+/En9g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794993617;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-QQ-mid:
	 X-QQ-Originating-IP:Received:X-QQ-SSF:X-QQ-GoodBg:X-BIZMAIL-ID:
	 EX-QQ-RecipientCnt:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:X-QQ-SENDSIZE:Feedback-ID:X-QQ-XMAILINFO:
	 X-QQ-XMRINFO:X-QQ-RECHKSPAM;
	bh=/RT9EeL7ji2hmMv3LbgGRfUUnKv+b38QkNlxTETqKtI=;
	b=LdlnhweWn16DbKgL+7cH0KwyrxwGMXxu2RHtqB8uLSEnFZziXE0ncQjfoA3TCTlFPAPd
	 gfgmVB6BVYsptPtx069d5MAo6vWmV+pMkG07U4thYCqNEpkBlse92itZkePTajgg+akla
	 icheU16+uFAehBCE8z2w5D+Guj5O+6tWbZfdgt7tDMMfU9kadSEASgLPcOeB6O9zGQivP
	 W+d9qQIrVsvIzULhzboCTi+AfHmoRIXQ/DQpDy+3e1xD87KpJRrJ3rnF9cyxzYneY8tOQ
	 yt9DvVybIRcq2ntfcSkxifuKhvf2cpqTAcmR2tDJQT2sa/MSv8DiEJWobz2NbSLvHdg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=uniontech.com header.i=@uniontech.com header.a=rsa-sha256 header.s=onoh2408 header.b=GwfvFYIA;
	dmarc=pass header.from=uniontech.com;
	spf=pass smtp.mailfrom=uniontech.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 4791B606A334;
	Wed, 18 Nov 2026 09:20:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.a=rsa-sha256 header.s=onoh2408 header.b=GwfvFYIA
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=54.254.200.128
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794993611;
	b=p11ZlEsAxKLZItlgNhyXZpO9YWVMWVGcxx5UpopUrm5HNpDe5ucaMyWxDW338F23Wy09
	 jIoh7uJo9lR23jghwHxOuc403sGLZYQ0Qr3OThxRz3Qfy9gtrE//rcXu/BiXqONnYapnj
	 Q4V/KKXmM1s3tE9KMIdYk0jkjICDukOZw3wMMN6QFMUCFWqIKf3Cc5H2QHBjV9hXUz+VD
	 qjbOFSI06ZndScr23BCq4hm5FziLPHNbY5+mtdb115BXQzlSaGetYiHaC8h3N++w/exDR
	 XDBOiIK6k0nKO/1dsxa2HX0HYi721zLRI+z9fO2l7yDR2spjc+Dmvn6unwlWKl38I3A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794993611;
	h=DMARC-Filter:DKIM-Signature:X-QQ-mid:X-QQ-Originating-IP:Received:
	 X-QQ-SSF:X-QQ-GoodBg:X-BIZMAIL-ID:EX-QQ-RecipientCnt:From:To:Cc:
	 Subject:Date:Message-ID:X-Mailer:MIME-Version:
	 Content-Transfer-Encoding:X-QQ-SENDSIZE:Feedback-ID:X-QQ-XMAILINFO:
	 X-QQ-XMRINFO:X-QQ-RECHKSPAM;
	bh=/RT9EeL7ji2hmMv3LbgGRfUUnKv+b38QkNlxTETqKtI=;
	b=GWeQiw7mqT/Z/Hb8VCJszLWmr0j0RHf62kGGrOpocSKebabNKEvdWv7O1BVXCrE1y1sA
	 WtKpWR0aOqMngYmCaML0vVRa7Ri2UNLjYGy0Qnd+17u+ll/lb8NrELdwXslg9mliySJPS
	 dlwYcVEoi2WNqcQoTl5lxj+hs2o7W4RIt2fteqPL2p5Hl261nptB6ChE7rBrMgIfd94r2
	 /K/sCxWSKZYimRoPXv8jIJeU8HV909pHehjY3iwUlAcLRkhUhP/5smhFfOH3UfpEL9gHU
	 R3xcTNmrhcg5owBcNNQFY+LwvkdtR3uMrpy54BupkjkjZl0+xiClnlHaKte1HYyRvIw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=uniontech.com;
	spf=pass smtp.mailfrom=uniontech.com;
	dkim=pass header.d=uniontech.com header.i=@uniontech.com header.a=rsa-sha256 header.s=onoh2408 header.b=GwfvFYIA;
	arc=none smtp.remote-ip=54.254.200.128
X-Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128])
	(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41679606A31C;
	Wed, 18 Nov 2026 09:20:06 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 41679606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniontech.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com;
	s=onoh2408; t=1794993599;
	bh=/RT9EeL7ji2hmMv3LbgGRfUUnKv+b38QkNlxTETqKtI=;
	h=From:To:Subject:Date:Message-ID:MIME-Version;
	b=GwfvFYIA7ln/PPRp6ROhqJRgvOG/tc001EEYQFYqFlIf891ktU3EmyYe8ZuvUuiQI
	 BMLv89ItbTiHIlmFitUGbtgZHFRjPZOylGafK6WpzUijgeafEDL+FIufyVnvV5zfg7
	 OmONp1Mg/DjzlrsjiGTE2bk4W/Xr5hUz4/COdaDA=
X-QQ-mid: esmtpgz15t1794993582tbf0479e5
X-QQ-Originating-IP: 3YK9IcMNkk1Tp97SCHpvldHX7zURvlorPi+rZRCCm1A=
X-Received: from PEN202512010004 ( [113.57.152.160])
	by bizesmtp.qq.com (ESMTP) with 
	id ; Wed, 18 Nov 2026 17:19:40 +0800 (CST)
X-QQ-SSF: 0000000000000000000000000000000
X-QQ-GoodBg: 1
X-BIZMAIL-ID: 10124214066944920201
X-EX-QQ-RecipientCnt: 15
X-Cc: mkl@pengutronix.de,
	davem@davemloft.net,
	edumazet@kernel.org,
	kuba@kernel.org,
	pabeni@redhat.com,
	corbet@lwn.net,
	horms@kernel.org,
	skhan@linuxfoundation.org,
	rdunlap@infradead.org,
	linux-can@vger.kernel.org,
	netdev@vger.kernel.org,
	linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	raoxu@uniontech.com
X-Mailer: git-send-email 2.50.1
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-QQ-SENDSIZE: 520
X-Feedback-ID: esmtpgz:uniontech.com:qybglogicsvrgz:qybglogicsvrgz6b-0
X-QQ-XMAILINFO: MxdW4jxL6NvXjZ0qWDpfrMwtPCDrN5doXGNnERIuprLdTmHByeIp05Ou
	29YFNzrwFwbqEZcIMN2lPW9TrWOSaXI9g7Ny1Aql74YQPTuuaLFa/0qeVGUk6vUnYXOmsRq
	qkvVVdDTp9uSrjIyp59+bSHExqN26YlbS1a4e4pyvdj23B+bCZD+pd/OGXCxhIoaCxRo97U
	y4y7la4nLbW6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