Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp2197609rwl; Sat, 5 Nov 2022 03:35:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7UteCQjph3nOBYeEN4W0y6xu0pK0vehhrVkwbjwuT8UcluG86q72KSnhmflziK8HhjirKr X-Received: by 2002:a17:902:f651:b0:184:6925:d127 with SMTP id m17-20020a170902f65100b001846925d127mr39677151plg.140.1667644510523; Sat, 05 Nov 2022 03:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667644510; cv=none; d=google.com; s=arc-20160816; b=pcufAHtgU2AapG7DENEvczR83bieO9qSEtNVfjOYht7VJsqrNvq7hlmRR3QLqtg5DC a75g7NIn/7s6XvWXZ9OaWSIdTigysYo/gCmdnr1p+VY93SPKb5lQPui0NWeaaNK4GZEN 20mFGv80wgWOtBPA4c4uStnTTBNms//i7h8K7H+iprWcClXDbd5v4GxmjV+hXohsCVyD 7JCQ96dArU+TrHawgH0naGC4T0RcOZ4ufXpbuf2GV70sR/hHm4amuUXhYh+BjbL4zsKQ 4SPWOyVBDcRRuQ9dqzw/4AHjp1v0P94olbPlERejb90kIWAyrJyo+7VASPmdEnGPUxVK lVKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AnnGCrt5RbgHj8ZQA5nS741HGDNZdNXSMfYQ5sBboqs=; b=lRfELjz2DK7G6OgyCyWVaV8jjRrv+gOrzMLc67e2zQ/7MQ35PgovWNk2wbmdeSXnsr QM8EJvHJwngO6JjQ4VP3LF2xEBuUbYEqQ0wh36mbPZPCplate6Z64TvPGFWbJhoZzTae eaoTnJpFQTd9KNXxwCzmEaw+ao8V1a9rIH/8TWcBBkTh6QZstdAa0+cblolQGdeIhuuH neNWMGYH3EIsnc2I/FWrtJcQPTKugoc1LcllWYkQywGtQao33/e51eY19iMu9qpTY/i8 yJhHhByOo5AiLnFaIsUd0izLNDZfj+WdPdUakkeuXw7A2mP+yJRQI0TnEFnr7tUul6NU mY0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jQcm7u3o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a17090aaa0c00b00213d512f07csi2356384pjq.182.2022.11.05.03.34.58; Sat, 05 Nov 2022 03:35:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jQcm7u3o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbiKEKLl (ORCPT + 98 others); Sat, 5 Nov 2022 06:11:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbiKEKLk (ORCPT ); Sat, 5 Nov 2022 06:11:40 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 543561CB16; Sat, 5 Nov 2022 03:11:39 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id l22-20020a17090a3f1600b00212fbbcfb78so10333519pjc.3; Sat, 05 Nov 2022 03:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AnnGCrt5RbgHj8ZQA5nS741HGDNZdNXSMfYQ5sBboqs=; b=jQcm7u3oj5HYs/1R8mHFbz4i6zWvv3cQB9QwRpNBuh2FqrgZffT7WafCmWJj2OBUoq WnQKTchdC00n0zVD9OyMVHGbqreKRdjpnI5LuxolLZY7rTuGRlBVH9u4DHfw13tUnjsi GpYR0FMco3J10hSE/bTkT4SMCuEJvy4/PgmJwSMXPNbTyQqw8iRfTQRhfWn4xUYjHEmx kCGPKlVimXK9WQv94Q8YkJwF5W6tYlay+/Vp5qSpwCpsgxuSMfUVH4xA8N9MLkU6ZNwS wOtb9O/NQ39dTgI6J9GEemJDbhAF8yVdD7Dh6RHnuOXuQgB18tjQkFW0wiz8cQLKnS7D BuNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AnnGCrt5RbgHj8ZQA5nS741HGDNZdNXSMfYQ5sBboqs=; b=OCJP7fYi5xdReJPjjxuBAknfUxKRjAqOQjG1RK7GHaEPnnAPI/GxUvhU9Uv/pOX9rk l2wt3Mm1bj1cxwRbTdEXu5vwNt2V327c/7zGUd2LX74Ngz1+E5/vMCiUyEWzLdpD+fw/ rOfAGuhK99heFfL/qu+D+AV7lTi1sS23/dkY4XN8FDI5v0USxOCBb1NQTlbtv4/jrcOb /o0hDypQeeLyYvSPF3VJJDIbmgklw6lxqiqZJPCGbvpE+xvkpmqvcdb/Oo8hqQR0qkuz baLrjrKqpvJBlzc80Zk00EDS0RlMY6pzKR5wwwTF0tyBDJjG31K1Vt0yaaAHq1vlVcKe PDsw== X-Gm-Message-State: ACrzQf0g0TMxVAAUc2W2TJPP2GvdkuzMBz3hGTQcJ22MmJ+fXjjKl9oW x5h3dZrBQPKe+UuG+osUm49ya2wyXxVBwJGs3j8= X-Received: by 2002:a17:903:185:b0:187:2430:d39e with SMTP id z5-20020a170903018500b001872430d39emr30430740plg.65.1667643097969; Sat, 05 Nov 2022 03:11:37 -0700 (PDT) MIME-Version: 1.0 References: <20221104172421.8271-1-Harald.Mommer@opensynergy.com> <20221104172421.8271-2-Harald.Mommer@opensynergy.com> In-Reply-To: From: Vincent Mailhol Date: Sat, 5 Nov 2022 19:11:26 +0900 Message-ID: Subject: Re: [RFC PATCH v2 1/2] can: virtio: Initial virtio CAN driver. To: Harald Mommer Cc: virtio-dev@lists.oasis-open.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Wolfgang Grandegger , Marc Kleine-Budde , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Dariusz Stojaczyk , Damir Shaikhutdinov Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Sat. 5 Nov. 2022 at 18:11, Vincent Mailhol wrote: > On Sat. 5 Nov. 2022 at 02:29, Harald Mommer wrote: > > +/* CAN flags to determine type of CAN Id */ > > +#define VIRTIO_CAN_FLAGS_EXTENDED 0x8000u > > +#define VIRTIO_CAN_FLAGS_FD 0x4000u > > +#define VIRTIO_CAN_FLAGS_RTR 0x2000u > > I recommend the use of the BIT() macro to declare flags. I just remembered that the BIT() macro is not meant to be used for UAPI. Please ignore this particular comment. > Please order those in ascending order. > Also, what is the reason to start from BIT(9) (0x200)? [...]