Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E29FC43334 for ; Tue, 19 Jul 2022 05:42:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236721AbiGSFmU (ORCPT ); Tue, 19 Jul 2022 01:42:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236686AbiGSFmS (ORCPT ); Tue, 19 Jul 2022 01:42:18 -0400 Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8A142CC82 for ; Mon, 18 Jul 2022 22:42:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1658209333; s=strato-dkim-0002; d=hartkopp.net; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=EuCDgN7NLUk3Vlk3srZvvQtCzH7kfGpTlXu+TYE4Jug=; b=tMMURhDTG1L6EfMc2X0598A2W3hJqqKM25BQgJ6NcNploFo3pPSVTX/2Yr/ZzrP64s 12hLp52uzF1SJ+Xmpa0RpjX4ubHWkiLL1yK61SS7p3/6/0zESab0+p6lvWo8CGCqFY1O WypudrlB1YKqauFmaCFgxV4I1R9kPGODNHCrKuV05BEWCg5VkWXi2wJD0j4p8hPq2057 ouyeIbWHsTmQetBFdyZlCl+ssdlF0nuwShABmKvUjOk22vLMVapJKazq5c3Wapg+QnQX vpYLVBh479cWtLWrEbWbECITsSdUoCNTi+u+eQwTvVDXF/YwxhjvxmO+hQQvQX46yOvV WDeA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P2MHfkW8eP4Mre39l357AZT/I7AY/7nT2yrDxb8mjGrp7owjzFK3JbFk1mS/xvEBL7X5sbo3UIh9JiLceSWJaYwXUKbZ" X-RZG-CLASS-ID: mo00 Received: from silver.lan by smtp.strato.de (RZmta 47.47.0 AUTH) with ESMTPSA id t870d5y6J5gDF5i (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 19 Jul 2022 07:42:13 +0200 (CEST) From: Oliver Hartkopp To: linux-can@vger.kernel.org Cc: Oliver Hartkopp Subject: [RFC PATCH v4 0/5] can: support CAN XL Date: Tue, 19 Jul 2022 07:41:59 +0200 Message-Id: <20220719054204.29061-1-socketcan@hartkopp.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-can@vger.kernel.org The CAN with eXtended data Length (CAN XL) is a new CAN protocol with a 10Mbit/s data transfer with a new physical layer transceiver (for this data section). CAN XL allows up to 2048 byte of payload and shares the arbitration principle (11 bit priority) known from Classical CAN and CAN FD. RTR and 29 bit identifiers are not implemented in CAN XL. A short introdution to CAN XL can be found here: https://www.bosch-semiconductors.com/media/ip_modules/pdf_2/can_xl_1/canxl_intro_20210225.pdf V2: Major rework after discussion and feedback on Linux-CAN ML - rework of struct canxl_frame - CANXL_XLF flag is now the switch between CAN XL and CAN/CANFD - variable length in r/w operations for CAN XL frames - write CAN XL frame to raw socket enforces size <-> canxl_frame.len sync V3: Fix length for CAN XL frames inside the sk_buff - extend the CAN_RAW sockopt to handle fixed/truncated read/write operations V4: Fix patch 5 (can: raw: add CAN XL support) - fix return value (move 'err = -EINVAL' in raw_sendmsg()) - add CAN XL frame handling in can_rcv() - change comment for CAN_RAW_XL_[RT]X_DYN definition (allow -> enable) Oliver Hartkopp (5): can: canxl: introduce CAN XL data structure can: canxl: introduce ETH_P_CANXL ethernet protocol handling can: dev: add CAN XL support can: vcan: add CAN XL support can: raw: add CAN XL support drivers/net/can/dev/rx-offload.c | 2 +- drivers/net/can/dev/skb.c | 49 +++++++++++++--- drivers/net/can/vcan.c | 11 ++-- include/linux/can/skb.h | 44 ++++++++++++++- include/uapi/linux/can.h | 49 ++++++++++++++++ include/uapi/linux/can/raw.h | 6 ++ include/uapi/linux/if_ether.h | 1 + net/can/af_can.c | 32 +++++++++-- net/can/raw.c | 97 +++++++++++++++++++++++++++----- 9 files changed, 256 insertions(+), 35 deletions(-) -- 2.30.2