Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp380481ybt; Wed, 1 Jul 2020 00:22:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEdlM5a3xfHTfSCNWYzwIIzC8e8GZCPCrchndJRl3XCAXVPys+wXLP/UxDSjfE0evTRjHs X-Received: by 2002:a05:6402:1605:: with SMTP id f5mr29044690edv.8.1593588178876; Wed, 01 Jul 2020 00:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593588178; cv=none; d=google.com; s=arc-20160816; b=jDNvue5kEDSxUObY6gf4TnygvRz2TPMwlssx2PNvxRxtt4M6Pfocfn8RX8DvqgcEJt 1ToMoXrtO3FJl2aiE9NVD4c4uaMrOj5RhHheaC8EkGBZu0+h6AVoKwlw2I89u3ZhSKvi HvqrTMVKZkc/Aa5IKDG9Jzh0yQalMy+yhdiO+k6MAdFxg08UAHBWSjy7MyCd5rSv7zv6 ejZPv6vvRfiLKjwPyMcG+x3O58Y7eVWiHjeNcuelllRYPOmMvn5DJ42NEHK/vMJcTFZN qptFZdtyOW+CrWKzCdw8RQG36UiOgnocjyk01/NcJPydv/74bqU9AZ2pG+4Rx5RWp7vp BThQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=OcYi+0RWrAkVtLHpLUjB44hIeWVcs41DvgknNIdy4kM=; b=j+udjtoeq4JoMdabkmFnYikS47hMGpDbW6df2aQwHJyf4o8biJFkK92MHkcVusx2ZF c9kaAZBkCAMew8/L2BNgeMfDeipWLRaZkmVdQjh/myoeUHAjoOROcsxrsnfXcTquKqrs fP+QODEb6pJ9Hth5Nr/77+0ORyo2REQ5UNjwgQfBi01cl9k9k65Wj+gCYiaD7kTTxOKK DrbaGu7oRblxSZd4alr5NQwyIhpvwtdhyOUZQWyjsWQPEEU8YdydGIw8SuS9pp+vLFlB ayJGuWw4inoDRij06SwMYQNdxe0Mi2eV0QzpbZTIJwaEgWyxOsJEkUbCA6DLINMhiBZ9 oPBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=tSnmokbP; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si3272698edv.60.2020.07.01.00.22.35; Wed, 01 Jul 2020 00:22:58 -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; dkim=fail header.i=@microchip.com header.s=mchp header.b=tSnmokbP; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728163AbgGAHW3 (ORCPT + 99 others); Wed, 1 Jul 2020 03:22:29 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:56411 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727988AbgGAHW3 (ORCPT ); Wed, 1 Jul 2020 03:22:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1593588149; x=1625124149; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ASReo1CJm8170qaaG0UUzUeLV1c7HctXtdLcR5LMm/I=; b=tSnmokbPztLf4L//Jmmh+kI3T1295R0tcteFEYeZrFMg8hHiJsw4IipK nkl17KadobHgUm/tbPB5tL+9ahbCFvJQGcZs75nrNTDrSZ0W/KekTGor1 /gZ8PXAydXYMmbxYWfhnEZqIDs++ipfHRFRYB+dhJYB5Cb6jk/MtJVrm0 PETkvPF5125T2GcI6mS/Sa9rZVDulBBvgCHzk+z6FfbXg62JrEiS2fdHV q9KgrlknyLtqppaV5lrFyrE5xpRn2Czqt4uPUbxkljNoyrAv6Cp7RKLv8 cNM6wo2cDk1BL3Wf1NKsiAtWF3Zjbne4CeCBz1KgZQleSlrUYwKQbvq/z Q==; IronPort-SDR: 5uBsSbrAYzBz21ZsGyql3MBfc5HFsT+DIsLVPvR9k9KUP3UL8ZRn6zg8Pqylahvk/RtcYsoyCF +JFRTvX5nkUBBOWg4uG3NRXCreQZk9AHTUThhgcQXz4QIuqV0SaiEVYq4G42+YBtR3SFg0/n2h eBstsnmZhCxENpQOl88X6SMJWlHRsWQTj8nMp+t95HQl8hZWxwvQ/bU/aDGi5pK2uXNkw60p0a HFM/5a0ib6PxMRWZ1PBck/1IvEd4oOJSUODs8W+cDD73eP62u4eGN1skCi2DJzgMoYTmxTutwW fZs= X-IronPort-AV: E=Sophos;i="5.75,299,1589266800"; d="scan'208";a="81498611" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 01 Jul 2020 00:22:29 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Wed, 1 Jul 2020 00:22:27 -0700 Received: from soft-dev3.localdomain (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Wed, 1 Jul 2020 00:22:05 -0700 From: Horatiu Vultur To: , , , , , , , , CC: Horatiu Vultur Subject: [PATCH net-next v2 0/3] bridge: mrp: Add support for getting the status Date: Wed, 1 Jul 2020 09:21:17 +0200 Message-ID: <20200701072120.520571-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series extends the MRP netlink interface to allow the userspace daemon to get the status of the MRP instances in the kernel. v2: - fix sparse warnings Horatiu Vultur (3): bridge: uapi: mrp: Extend MRP attributes to get the status bridge: mrp: Add br_mrp_fill_info bridge: Extend br_fill_ifinfo to return MPR status include/uapi/linux/if_bridge.h | 17 +++++++++ include/uapi/linux/rtnetlink.h | 1 + net/bridge/br_mrp_netlink.c | 64 ++++++++++++++++++++++++++++++++++ net/bridge/br_netlink.c | 29 ++++++++++++++- net/bridge/br_private.h | 7 ++++ 5 files changed, 117 insertions(+), 1 deletion(-) -- 2.27.0