Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2556968pxb; Sat, 2 Oct 2021 22:06:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQhCsATTcIZAnxM7ZBJ51ak4BDqhbwofkWvqe/Oaj+zIeufLoQTTgcW+exEOJeIx3q96dK X-Received: by 2002:a17:906:8396:: with SMTP id p22mr8205029ejx.140.1633237603027; Sat, 02 Oct 2021 22:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633237603; cv=none; d=google.com; s=arc-20160816; b=R6UB45UN/j5m62WdB1yrNgrn2EyepgnUMcIfFi50E4BtRDN9pk8hpPnlwGPRPwoocQ EU5UdSnkOqFnsTR9NpZduY0EwJRlBlp721f6lfzHeOPRg1EPKLV6NeQA4vNyyVR9hmvf eGc5LGMfMTjyvKkwS7+4E1yNwQGp4KQQjw1zK1sgAT+lQ9/RxYTugzBr7hlRHqShPgqB 36cCPXBAavjlGz6PxQJJy8F2uzUkpcNmyzHuueWkHFfGkJnG2wLVSoShRvxHIuFI64lr OCM7cx6d6tEo1b92ZnNFT+Xtj+bmekoyuZAPLaD5nayCs2AhwtytbqHLSGe6OE0GI39H Dabw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8rhRF14xLr0dGmjLVz4y7Vx1KO9GeYn7n5Vq7m8wOiw=; b=uc3Koxf2zw6LQ2oTc9D2uhjsr8gOTBJBYD8EoUOA2H49lmvZZLueoOX2tRVTS6JSOp /AukzUcaZnjMyTarju9c3L0dH+kOG1IxgT/JrE0i+dbnUeWGs6A0G8ICV4Ux+vrMFoVR WZ/1OmOTvAHyjIvTLABB7jxTEdBn+8ImOvY5iA3VkKO7K2BPoERvIe+u91XEEkKf1y8G AJqWPfKkG2kLrKw3bZoTMnEMxHL7J1UGQbBkTQXM1yVGIAxvH4felUCTOv1unUGQVQeH SERnR61u85LfbcalFDy11ndR4tZ94Fh6946fhopTYZh0jAhVM4FEq1AZOm04AAGCpk0o ju1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x23si12326573ejs.249.2021.10.02.22.06.19; Sat, 02 Oct 2021 22:06:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbhJCFFC (ORCPT + 99 others); Sun, 3 Oct 2021 01:05:02 -0400 Received: from smtp04.smtpout.orange.fr ([80.12.242.126]:53045 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbhJCFFA (ORCPT ); Sun, 3 Oct 2021 01:05:00 -0400 Received: from tomoyo.flets-east.jp ([114.149.34.46]) by smtp.orange.fr with ESMTPA id WtdMmhDZXsoWhWteYm9Qcm; Sun, 03 Oct 2021 07:03:12 +0200 X-ME-Helo: tomoyo.flets-east.jp X-ME-Auth: MDU0YmViZGZmMDIzYiBlMiM2NTczNTRjNWZkZTMwOGRiOGQ4ODf3NWI1ZTMyMzdiODlhOQ== X-ME-Date: Sun, 03 Oct 2021 07:03:12 +0200 X-ME-IP: 114.149.34.46 From: Vincent Mailhol To: Marc Kleine-Budde , linux-can@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Mailhol Subject: [RFC PATCH v1 3/3] uapi: can: netlink: add new field to struct can_ctrlmode to report capabilities Date: Sun, 3 Oct 2021 14:01:47 +0900 Message-Id: <20211003050147.569044-4-mailhol.vincent@wanadoo.fr> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211003050147.569044-1-mailhol.vincent@wanadoo.fr> References: <20211003050147.569044-1-mailhol.vincent@wanadoo.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is for your convinience. iproute2-next normally directly pulls the uapi changes but I think it will be more convinient for people who want to test to just be able to directly apply this series and have things working. Signed-off-by: Vincent Mailhol --- Please do not pull! --- include/uapi/linux/can/netlink.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/can/netlink.h b/include/uapi/linux/can/netlink.h index 00c763df..fa1cab72 100644 --- a/include/uapi/linux/can/netlink.h +++ b/include/uapi/linux/can/netlink.h @@ -88,7 +88,10 @@ struct can_berr_counter { * CAN controller mode */ struct can_ctrlmode { - __u32 mask; + union { + __u32 mask; /* Userland to kernel */ + __u32 supported; /* Kernel to userland */ + }; __u32 flags; }; -- 2.32.0