Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5270500iob; Mon, 9 May 2022 12:24:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykLAObDICl7RLkQIpgQowAmrcJIflrfdNpNhplkyYx/abJf6XlCNS9jdq0BhjQGNseSVvh X-Received: by 2002:a9d:7d10:0:b0:606:b46:caae with SMTP id v16-20020a9d7d10000000b006060b46caaemr6777888otn.242.1652124274874; Mon, 09 May 2022 12:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652124274; cv=none; d=google.com; s=arc-20160816; b=iwB6o0KlcDQFqLfLWvmqGdEAtTTGuH0g82koMx4e8qCbEByD+6uq8XHnlno0lZyjOo qwPzvEzD+F2QxfErJeer6re+3xqRO1JNDCn0gllPQxgtKhI8z561qtBL56J1KzKfBroW RIQWGVbHzNWB5NADSd/WOgyCuvxqy4kCaImEIy58k47/RgTCe4wRQ7N5ZHjlWn7Dnyg3 NC6ARYv/EsOnmhpJNmkROFCzdX4Yo45pQsi6GSTFAHN7XCbalVX27Ijg8ymPA/t89v9i B2ELxVgirLIi7UfKjuMpj5mqmEoYfecQTj9+Je531FFx/me+/6i8+OUcnJVL+rCFSDfG 6laQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=XSlXo3dwqahr8paC6DhvuP1d73QjFGvrLmVKONNoHms=; b=IuLx2dAbL/Vl9+8XS94+35U00+nAqgO8LM7cxysQwguEPfIpH4IA3sL78iFjGG9u/q tONO/oEJBd5ggJqQMVVKL3fbCHO8+E1JNzS8igD41aqX4zoQYAYMmnQYahW3Fh8mUbI8 CTviysh+T3syT5618WoftJOdJ/875bVh2/P2fIZ3hilVqG12gT75AQVSAwc8o+fPoF3x xrtUk+dKeG0fqGVemo644SYTpNYBh6PiejPCPFG5EvWBZlazUrKKQe7Jw9pj6P3Jre8S 01z3ZLEBuDzc+jdwZHu0q1B1fF6q0P5hbrhqMB0Qvq0/Z6xsomAca3RWt0hXa/5iDtEl uBkw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e9-20020a056870c34900b000ee20f7047fsi9806443oak.149.2022.05.09.12.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 12:24:34 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1D971F61C1; Mon, 9 May 2022 12:16:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240505AbiEITUE (ORCPT + 99 others); Mon, 9 May 2022 15:20:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240486AbiEITUB (ORCPT ); Mon, 9 May 2022 15:20:01 -0400 X-Greylist: delayed 712 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 09 May 2022 12:16:04 PDT Received: from relay-b03.edpnet.be (relay-b03.edpnet.be [212.71.1.220]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5736D6353D for ; Mon, 9 May 2022 12:16:03 -0700 (PDT) X-ASG-Debug-ID: 1652123048-15c435381a966b00001-xx1T2L Received: from srv21.vandijck-laurijssen.be (77.109.97.42.adsl.dyn.edpnet.net [77.109.97.42]) by relay-b03.edpnet.be with ESMTP id evQvZkMsT4fx48c7; Mon, 09 May 2022 21:04:08 +0200 (CEST) X-Barracuda-Envelope-From: dev.kurt@vandijck-laurijssen.be X-Barracuda-Effective-Source-IP: 77.109.97.42.adsl.dyn.edpnet.net[77.109.97.42] X-Barracuda-Apparent-Source-IP: 77.109.97.42 Received: from x1.vandijck-laurijssen.be (x1.vandijck-laurijssen.be [IPv6:fd01::1a1d:eaff:fe02:d339]) by srv21.vandijck-laurijssen.be (Postfix) with ESMTPSA id 0E1DA1063BE; Mon, 9 May 2022 21:04:08 +0200 (CEST) Date: Mon, 9 May 2022 21:04:06 +0200 From: Kurt Van Dijck To: Devid Antonio Filoni Cc: Robin van der Gracht , Oleksij Rempel , kernel@pengutronix.de, linux-can@vger.kernel.org, Oleksij Rempel , Oliver Hartkopp , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Maxime Jayat , kbuild test robot , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND] can: j1939: do not wait 250ms if the same addr was already claimed Message-ID: X-ASG-Orig-Subj: Re: [PATCH RESEND] can: j1939: do not wait 250ms if the same addr was already claimed Mail-Followup-To: Devid Antonio Filoni , Robin van der Gracht , Oleksij Rempel , kernel@pengutronix.de, linux-can@vger.kernel.org, Oleksij Rempel , Oliver Hartkopp , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Maxime Jayat , kbuild test robot , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220509170303.29370-1-devid.filoni@egluetechnologies.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220509170303.29370-1-devid.filoni@egluetechnologies.com> X-Barracuda-Connect: 77.109.97.42.adsl.dyn.edpnet.net[77.109.97.42] X-Barracuda-Start-Time: 1652123048 X-Barracuda-URL: https://212.71.1.220:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at edpnet.be X-Barracuda-Scan-Msg-Size: 1034 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=7.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.97894 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On ma, 09 mei 2022 19:03:03 +0200, Devid Antonio Filoni wrote: > This is not explicitly stated in SAE J1939-21 and some tools used for > ISO-11783 certification do not expect this wait. IMHO, the current behaviour is not explicitely stated, but nor is the opposite. And if I'm not mistaken, this introduces a 250msec delay. 1. If you want to avoid the 250msec gap, you should avoid to contest the same address. 2. It's a balance between predictability and flexibility, but if you try to accomplish both, as your patch suggests, there is slight time-window until the current owner responds, in which it may be confusing which node has the address. It depends on how much history you have collected on the bus. I'm sure that this problem decreases with increasing processing power on the nodes, but bigger internal queues also increase this window. It would certainly help if you describe how the current implementation fails. Would decreasing the dead time to 50msec help in such case. Kind regards, Kurt